Jython Reaches 2.5 (Alpha)


News: Jython Reaches 2.5 (Alpha)

  1. Jython Reaches 2.5 (Alpha) (3 messages)

    The Jython team release Jython 2.5 Alpha today. Congratulations Jythonistas! Here is the announcement: On behalf of the Jython development team, I'm pleased to announce that Jython 2.5a0+ is available here http://downloads.sourceforge.net/jython/jython_installer-2.5a0.jar for download. See http://jython.org/Project/installation.html for installation instructions. This is the first alpha release of Jython 2.5 and contains many new features. In fact, because we have skipped 2.3 and 2.4, there are too many to even summarize. A few of the features are: * Generator expressions * With statement * Exceptions as new-style classes * Unicode support more in line with CPython * Decorators Under the hood Jython 2.5 has a new parser based on ANTLR 3.1 and the compiler has been refactored to use ASM. There are so many more changes that I have missed more than I have listed. This is an alpha release, so there are known and unknown bugs, so be careful.
  2. Quick question: are Jython classes easily accessible from regular Java like let's say Groovy classes? Or do you still need to go through some conversion process to get the two to interoperate?
  3. Jython compiles Python to Java classes on the fly. Once your script instantiates a Jython class it is accessible through the normal class loader methods. So a Java class can call methods in a Jython class. Also, Groovy class could do a reflection method call to find a Jython instantiated class. I heard some talk from the JSR 223 and 292 expert team members about creating an way for script languages to call each other directly. Nothing like that exists yet so we're pretty much on our own using the class loader. -Frank Cohen http://www.pushtotest.com
  4. I'm hoping that the answer is yes, but is Jython 2.5 compatible with Python 2.5? (At least intended to be?)