| [ Web Proxy ] |
| Viewing: https://wiki.python.org/moin/../python/platforms/../../python/../jython/internals/BiggerTasks.html | [Back] [Original] |
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
Contents
yield is always a keyword. [done]
enumerate() built-in added. [done]
int() will now return a long instead of raising OverflowError if a number is too large.
built-in types support extending slicing syntax.
list.insert() changed to be consistent with negative slice indexing. [done]
list.index() takes optional start, stop arguments. [done]
Dictionaries gained a pop() method and .fromkeys() class method. [done]
dict() constructor takes keyword arguments. [done. also applied in 2.2]
assert no longer checks [debug] flag.
Many type objects are now callable. [possibly done]
PEP 218: A Standard Set Datatype
PEP 263: Defining Python Source Code Encodings
PEP 273: Importing Modules from Zip Archives [done]
PEP 278: Universal Newline Support [done]
PEP 285: A Boolean Type
PEP 307: Pickle Enhancements
Reference: Whats New in Python 2.3
Built-in set, frozenset
Unifying int/long
Generator expressions
Function/method decorators
Multi-line imports
Reference: Whats New in Python 2.4
Conditional expressions
with statement
Absolute & relative imports
Unified try/except/finally
New generator features
Exceptions as new-style classes
The [index] method
Reference: Whats New in Python 2.5
jythonc doesnt 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 jythoncs 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.
Jython adds to Pythons import system to handle loading from Javas classpath and to load from jar files. Its 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 whats 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 Pythons import machinery in Python; see http://svn.python.org/view/sandbox/trunk/import_in_py/ for the code.
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.
Back to top2026, Python Software Foundation
Made with Sphinx and Shibuya theme.
| Web Proxy Viewer | New URL | Original Page |