Commits

Author Commit Message Labels Comments Date
Jeff Allen
Merge misc improvements to import
Jeff Allen
Increment the API version (see #2158) & enable detailed error messages. Forces recompilation from source where old $py.class files may contain incorrectly-generated import calls. When only a compiled file is found, long-lost meaningful ImportError messages have been re-enabled.
Jeff Allen
Correct level in relative * imports. Fixes #2158 and #2259. A test is added for "from ...X.Y import *" and failing code is corrected in the code-generation phase of compilation, so that the proper value of "level" is obtained. Code is simplified (and should compile to nothing when imp.DEFAULT_LEVEL == 0 in 3.x).
Jeff Allen
Fix #2347, sensitivity to actual package in PEP 328 tests. The function TestImportFunction.top() is rewritten to return a dict that will serve as a top-level module, irrespective of the actual parentage of the test. Comments and optional diagnostic commentary have been added, because module import is tricky to understand.
Jeff Allen
Formatting changes (whitespace only) to import-related files.
Jeff Allen
test_import runs on Windows. Fixes #3210.
Jeff Allen
Add test/symlink_support.py from lib-python to Lib (unchanged). Added unchanged, so we can easily see the change when it comes.
Frank Wierzbicki
Added tag v2.7.0 for changeset 77e0e7c87bd1
Frank Wierzbicki
Add note that JYTHON_HOME should be unset to install.
Tags
v2.7.0
Frank Wierzbicki
Added tag v2.7.0 for changeset 3a7bb3fb3338
Frank Wierzbicki
Update version info for release.
Jim Baker
Sibling relationship with CPython includes use and derivation
Frank Wierzbicki
Added tag v2.7rc3 for changeset 40ea8d57ec6a
Frank Wierzbicki
Update version for rc3.
Tags
v2.7rc3
Jim Baker
Minor doc fixes
Jim Baker
Project doc updates
Jim Baker
Fix test for issue #2105 so that the test runs correctly on Windows
Jim Baker
Many compatibility fixes for launcher (bin/jython, bin/jython.exe) Now supports CLASSPATH, and correctly parses JAVA_OPTS and JYTHON_OPTS for inclusion into the command line for org.python.util.jython, which is the actual main program for command line Jython. Updated installer so it generates a shebang line for the launcher that is specific to the CPython 2.7 installation that's available. This change allows for -E to be passed as an option, which does not work …
Jeff Allen
Merge misc fixes to trunk
Jeff Allen
jython -m test.regrtest -e now finds the tests it should. Fixes #2332. Aligns findtestdir() with later lib-python version of regrtest so it finds the tests without reliance on sys.argv[0]. Also adds a method that legitimizes use #-comments in the tables of expected skips and failures. (We already do, but they were appearing as test names.) The logic supporting the --expected flag is clarified.
Jeff Allen
Fix minor regression in test_java_integration. Stop expecting a sys-package-mgr message, suppressed under issue 1572.
Jeff Allen
Update test_zipimport_support to correct 2 failing tests. Merges code from lib-python library, preserving Jython-specifics, and correcting internal inconsistencies. Only the test was broken.
Jeff Allen
sys-package-mgr console messages silenced by default. Fixes #1572. The messages concerned are demoted from "message" to "comment" in Jython's private logging framework. Thanks to Emmanuel Jannetti.
Jeff Allen
Tests in org/python/tests/imp run only with proper path. Fixes #2327. The JUnit test for package import depends on a particular class path setting. It has its own ant target for this reason, but was also found by the general search for tests, where it ran and failed.
Jim Baker
Fix inconsistent conversion of PyObject to String in StdoutWrapper Thanks Richard Fearn for the patch to StdoutWrapper! Fixes http://bugs.jython.org/issue2105
Jim Baker
Support both subclassing from Java in a Python class and a Python implementatin of __tojava__ Required regenerating with src/templates/gderived.py all classes using object.derived in their template. Thanks to Daniel Martin for an initial version of this change. Fixes http://bugs.jython.org/issue1795
Jim Baker
Fix various threading issues introduced by previous fix repr() of threading.{Condition,Lock,RLock} is now a cleaned-up version of what is seen in CPython. Example for an acquired RLock: <_threading.RLock owner='MainThread' count=1>. But we differ from CPython in providing something similar for Lock: <_threading.Lock owner='MainThread' locked=True> Fixed typo such that creating a new RLock in Python would actually return a Lock, which has quite differe…
Jim Baker
Missing files from previous commit
Jason Madden
Fix threading.Lock to support non-reentrant semantics Jython previously supported threading.Lock by wrapping java.util.concurrent.ReentrantLock, much like threading.RLock. However, such reentrant locks cannot support the release by threads other than the one that acquired it, contrary to what CPython both documents and implements. Fix by using an underlying lock based on java.util.concurrent.locks.AbstractQueuedSynchronizer, following the example cod…
Jason Madden
Fixes pickling issues in object.__reduce__ and cPickle.{load, loads} Uses a common helper method to prevent infinite recursion when a Python object implements __reduce__ and sometimes calls object.__reduce__. Trying to do it all in __reduce__ex__ caused this problem. Now throws correct Python errors if attempting to load pickled data that has been corrupted in certain ways, including truncation and bad ops/stack. Completes fix for http://bugs.jython.org/issue2323
  1. Prev
  2. Next