Differences between revisions 12 and 13
Revision 12 as of 2008-02-11 05:49:10
Size: 3145
Comment:
Revision 13 as of 2008-02-11 05:58:35
Size: 3926
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
 * 'with' statement  * [http://www.python.org/dev/peps/pep-0343/ PEP 343]: 'with' statement
Line 10: Line 10:
 * Unified try/except/finally  * [http://www.python.org/dev/peps/pep-0341/ PEP 341]: Unified try/except/finally
Line 14: Line 14:
 * enumerate() built-in added.  * [http://www.python.org/dev/peps/pep-0279/ PEP 279]: enumerate() built-in added.
Line 24: Line 24:
 * [http://www.python.org/dev/peps/pep-0282/ PEP 282]: logging package
Line 25: Line 26:
 * [http://www.python.org/peps/pep-0293.html PEP 293]: Codec Error Handling Callbacks
 * [http://www.python.org/dev/peps/pep-0302/ PEP 302]: New Import Hooks
 * [http://www.python.org/doc/2.3/whatsnew/node18.html#SECTION0001820000000000000000 optparse module]
Line 28: Line 32:
 * assert no longer checks `__debug__` flag.
Line 32: Line 35:
 * Multi-line imports
* Absolute & relative imports
 * Exceptions as new-style classes
 * [http://www.python.org/dev/peps/pep-0328/ PEP 328]: Multi-line and absolute/relative imports
 * [http://www.python.org/dev/peps/pep-0352/ PEP 352]: Exceptions as new-style classes
Line 36: Line 38:
 * [http://www.python.org/dev/peps/pep-0309/ PEP 309]: Partial Function Application
 * [http://www.python.org/dev/peps/pep-0338/ PEP 338]: Executing modules as scripts
 * [http://www.python.org/doc/2.3/whatsnew/node14.html PEP 305]: CSV

Contents TableOfContents

Alpha

Done

Beta

Replace jythonc

jythonc doesn't handle generators and is difficult to debug and improve. The current thinking is to add capabilites to jython itself to generate bytecode from py files and run those statically compiled items rather than jythonc's approach of making Java classes that work like the base Python code. See http://thread.gmane.org/gmane.comp.lang.jython.devel/1429/focus=1430 for the general idea.

Solidify Import System

Jython adds to Python's import system to handle loading from Java's classpath and to load from jar files. It's not exactly clear what modifications are in place and what techniques are best for adding jar files to the path at runtime and things like that. An informational JEP explaining what's been added and how things relate to both the Python and Jython sides would be nice.

Brett Cannon has been working on rewriting all of Python's import machinery in Python; see http://svn.python.org/view/sandbox/trunk/import_in_py/ for the code.

Complete Java to Python naming integration

Java allows a method and field of the same name to exist in the same class. Python only has a single namespace for these items. This leads to methods being hidden in a Java instance in Jython if the instance has a field of the same name. In addition, the bean convenience methods that map object.getField() in Java to object.field in Jython lead to collisions. See http://thread.gmane.org/gmane.comp.lang.jython.user/4919/ and http://jython.org/bugs/1509095. A standard system for renaming fields and methods to avoid collisions and a JEP explaining the whole thing would be most welcome.

RoadMap (last edited 2013-02-06 23:22:57 by FrankWierzbicki)