Looking for the latest version? Download Jython 2.5.2 (18.4 MB)
Home / jython / 2.5.2
Name Modified Size Downloads / Week Status
Parent folder
Totals: 2 Items   18.4 MB 150
readme 2011-03-03 10.1 kB 22 weekly downloads
jython_installer-2.5.2.jar 2011-03-02 18.4 MB 148148 weekly downloads
Welcome to Jython 2.5.2 ======================= Installation Notes ------------------ It is important to know that the installer.jar has to be launched! See http://wiki.python.org/jython/InstallationInstructions for a short introduction. Summary of the release ---------------------- This is the final 2.5.2 release of Jython. This release fixes bugs related to resource leaks, Java integration, and a number of other issues. See the NEWS file for more details. In particular, we did not completely fix #1327, "Classloaders cannot GC, which exhausts permgen." Jython uses instances of ThreadLocal-managed class, ThreadState, to manage its execution state, including frames, exceptions, and the global namespace. The ThreadState also indirectly refers to the ClassLoaders used by Jython. Such usage can cause resource leaks when a Jython application is restarted under certain app containers, because the ThreadState often may not cleaned up by the app server's thread pool. Fixing this problem without a backwards breaking API change appears to be difficult. Therefore we recommend exploring workarounds, such as the one published in this blog post, http://weblogs.java.net/blog/jjviana/archive/2010/06/09/dealing-glassfish-301-memory-leak-or-threadlocal-thread-pool-bad-ide Jython 2.6 will introduce limited backwards breaking API changes, so it will be possible to fully resolve this bug, and related issues, in that version instead. And -- last but not least -- please help spread the word: Organizations using Jython 2.2.1, or earlier, should test their code against 2.5.2 now so that bug fixes and/or workarounds may be identified. In particular, please note the following: * No additional work is anticipated on Jython 2.2. * Jython 2.5.2 is the last release in Jython 2.5.x series that will address non-severe issues, including Java integration issues. * Jython 2.6 development will begin immediately following the 2.5.2 release. Jython 2.6 will require the use of JDK 6. The release was compiled on Mac OS X with JDK 5 and requires JDK 5 to run. Please try it out and report any bugs at http://bugs.jython.org. Jython 2.5.2 Release Notes ========================== The following features have been added and bugs have been repaired for 2.5.2. New Features ------------ - The socket module now includes ipv6 support - The socket module now also includes Internationalized Domain Names (RFC 3490) support on Java 6 - Performance improvements around method invocation. 2.5.2 runs the richards benchmark 3x faster and the pystone benchmark 20% faster than 2.5.1 - The posix/nt module was rewritten in Java and the performance of its often performance-critical stat function has significantly improved - Improved OSError errno messages on Windows - Slightly improved startup time (ongoing Issue #1380) - Better readline module emulation (required for IPython support) - Python functions can be directly passed to Java methods that take a single method interface (such as Callable or Runnable) - Add google indexer (by Yin Wang and Steve Yegge) Bugs Fixed ---------- 2.5.2-rc4 ~~~~~~~~~ - [ 1667 ] thread.local subclasses with constructor params fail - [ 1698 ] warnings module fails under JSR-223 - [ 1697 ] Wrong error message when http connection can not be established - [ 1210 ] Lib/socket.py doesn't allow IPv6 sockets and fails with an AssertionError - [ 1700 ] "virtualenv is not compatible" to 2.5.2rc3 - [ 1701 ] Files are not flushed properly when opened from the EDT (partial fix) 2.5.2-rc3 ~~~~~~~~~ - [ 1674 ] PDB crashes under the JSR-223 scripting engine - [ 1680 ] jython -c option is not parsed right - [ 1681 ] JSR-223, Jython 2.5.2 and implementing Java Interfaces from Python - [ 1675 ] Jython exits prematurely when executing a file, thus killing Swing windows - [ 1682 ] exit code of 0 on unhandled exception - [ 1668 ] strptime('','') works on cpython but not on jython - [ 1693 ] Unicode sys.path elements cause UnicodeErrors on import 2.5.2-rc2 ~~~~~~~~~ - [ 1665 ] cPickle calls __import__ with illegal parameters - [ 1628 ] getpass.getpass echoes input - Fix logic to detect that a console is interactive (related to #1133) 2.5.2-rc1 ~~~~~~~~~ - [ 1133 ] Support ipython and other completers with readline emulation - [ 1642 ] JSR223 PyScriptEngine#getInterface returns a NPE when called with zero args - [ 1662 ] time.strptime does not use Java date format strings properly - [ 1543 ] PyArray fails to clean up pre-allocated space - [ 1661 ] Error at on exit in TCC/LE - [ 1639 ] JBoss 5, vfszip protocol in use for jarFileName in PySystemState - [ 1660 ] threading module memory leak - [ 1452 ] pydoc help() function fails because sys.executable is None in stand-alone Jython - [ 1568 ] sys.stdout.encoding returns wrong value in Windows with Jython 2.5.1 (fixed on Java 6 only) - [ 1647 ] zxJDBC does not handle NVARCHAR - SocketServer module now supports ephemeral server ports (by using port 0); see discussion for #1660 2.5.2-b2 ~~~~~~~~ - [ 1327 ] Classloaders cannot GC, which exhausts permgen (partial bug fix) - [ 1604 ] PyBuiltinCallable.Info should be serializable - [ 1397 ] Bugs in PyList and PyJavaType.ListIndexDelegate slice setting - [ 1503 ] Java constructors should take keyword arguments - [ 1648,1495,1516 ] Incomplete implementation of pep328 for relative imports - [ 1611 ] Jython bytecode violated JLS, causing NPE on Sun's JVM when using -Xcomp option - [ 1643 ] Tools subdirectory still exists in trunk - [ 1455 ] Classes loaded dynamically from sys.path do not have their package defined - [ 1555 ] Jython does not publish MIME types via JSR 223 (ScriptEngine.getFactory().getMimeTypes() is empty). - [ 1632 ] cPickle.Unpickler does not allow assignment of find_global - [ 1395 ] PyList.indexOf() and PyTuple.indexOf() do not function properly - [ 1373 ] Jython ClassLoader getResource does not work - [ 1506 ] Jython applies PEP263 pattern for determining source-code encoding on noncomments - [ 1630 ] threading.Thread lacks __tojava__ method - [ 1558 ] PyFunction to single method interface wrapping does not andle java.lang.Object methods - [ 1622 ] array type prevents __radd__ fallback 2.5.2-b1 ~~~~~~~~ - [ 1614 ] minidom chunks the character input on multi-line values - [ 1615 ] Can't invoke Java method that takes a variable number of arguments with zero arguments - [ 1605 ] float preference over PyComplex as arg to __call__ breaks logic - [ 1586 ] weakref reference count leak when kwargs are used - [ 1601 ] Can't serialize PyCode object - [ 1551 ] Java objects cannot be copied by the copy module - [ 1375 ] XML SAX: attrs.get((None, 'attr')) gives NPE - [ 1488 ] sax JyInputSourceWrapper does not support unicode strings - [ 1510 ] minidom is not parsing comment information correctly - [ 1549 ] Wrapping an InputStream with a PyFile wrongly carries out line-ending translation. - [ 1583 ] xml.dom.Node.data returns bytestrings of decoded unicode - [ 1515 ] modjy sometimes adds None to the sys.path - [ 1507 ] modjy crashes if any query string parameters are not set with '=' - [ 1473 ] modjy servlet doesn't import site-packages by default - [ 1474 ] modjy servlet doesn't call atexit handlers - [ 1225 ] socket.getservbyname/port() not yet supported - [ 1532 ] Cannot use docstring when defining class - [ 1530 ] BoolOp in multiple assign causes VerifyError - [ 1478 ] defaultdict & weakref.WeakKeyDictionary [TypeError: first argument must be callable] - [ 1487 ] Import of module with latin-1 chars fails on utf-8 file encoding - [ 1449 ] Ellipsis comparison different from Python 2.5 to Jython 2.5 - [ 1493 ] tarfile.extractall() throws "AttributeError: 'module' object has no attribute 'chown'" when called by root - [ 1470 ] os.mkdir Errno difference from cpython - [ 1496 ] fix os.listdir errno for non-existing dirs - [ 1499 ] PostgreSQL datahandler should return Decimals instead of floats for NUMERIC/DECIMAL columns - [ 1477 ] os.setpgrp and posix.setpgrp fail with TypeError - [ 1396 ] Assigning os module funcs as class attributes incompatible with CPython - [ 1504 ] Inheriting twice from the same Java interface causes MRO problems - [ 1511 ] PySet doesn't support Java serialization - [ 1426 ] JSR 223 Bindings changes not taking effect and leaking between threads; unnecessary synchronization - [ 1548 ] Parentheses in CLASSPATH cause errors in jython.bat - [ 1576 ] files opened in 'a+' mode not readable - [ 1563 ] unicode() for Java objects working differently in 2.2 and 2.5 - [ 1566 ] os.popen(cmd).read() returns `\r\n` as newline on Windows with Jython 2.5 - [ 1517 ] TypeError: get_referrers - [ 1502 ] string-escape codec incorrect - [ 1534 ] new style object __dict__[name] ignored - [ 1479 ] xml parser file lock - [ 1582 ] com.ziclix.python.sql.PyConnection leaks memory - [ 1520 ] os.listdir doesn't return unicode when requested - [ 1483 ] optparse std module dies on non-ASCII unicode data - [ 1390 ] ihooks fails due to unimplemented methods in imp module - [ 1456 ] sys.trace/profile attributes cause: AttributeError: write-only attr: trace in PyAMF - [ 1385 ] generator.throw uncaught on new generator doesn't stop the generator - [ 1596 ] SynchronizedCallable does not report that it is callable [suggested fix] - [ 1557 ] jython.bat doesn't work in 4nt - [ 1567 ] [Windows] Wildcard Parameter * gets expanded to filename - [ 1594 ] Glob patterns like .txt processed incorrectly on startup - [ 1356 ] [Windows] test_subprocess test_communicate_pipe_buf fails - [ 1595 ] [patch] CachedJarsPackageManager cannot write cache for packages in jar over 64k - [ 1522 ] repeated execution of external python scripts causing PermGen out of memory exception - Fix runtime issues during exitfuncs triggered via SystemRestart (such as during Django or Pylons development mode reloading) - Fix pickling of collections.defaultdict objects - Fix the cmath module to accept objects implementing the __float__ method
Source: readme, updated 2011-03-03