is a Python
language implementation in Java. Jython was originally called
JPython, that project
in 1997 by Jim Hugunin at CNRI. The name was changed to adhere to the
original JPython license requirements. Jython has been released under
version 2 of the
Python Software Foundation license.
The Jython project description states:
Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.
the Jython FAQ explains
Jython implements the Python programming language on the Java(tm) Platform. It consists of a compiler to compile Python source code down to Java bytecodes which can run directly on a JVM, a set of support libraries which are used by the compiled Java bytecodes, and extra support to make it trivial to use Java packages from within Jython.
On August 23, 2007, Frank Wierzbicki
announced Jython version 2.2 on his weblog.
"This is the first production release of Jython in nearly six years,
and it contains many new features". The Jython
shows that Jython 2.2 has been in beta test since February, 2007.
Jython 2.2 fully implements the features of Python version 2.2.
New capabilities in Jython 2.2 include:
new-style classes, Java List integration, a PEP 302 implementation,
iterators, generators, __future__ division,
support for modern JVMs, a new installer and
ssl and non-blocking support for sockets.
The changelog file
has a more detailed release history.
explains the plans for the future developments. Support for Python 3000
is planned. Jython is a few steps behind Python, which is currently at
Jython 2.2 is available for download
installation instructions are straightforward. A test install
was performed on your author's Ubuntu 6.10 (Edgy Eft) system with the
Java 2 Runtime Environment, Standard Edition build 1.5.0_08-b03.
The installation went smoothly and some simple Python test programs
were executed with no problems. As
noted in the FAQ, JPython startup was noticeably slower
than regular CPython.
If you need to run Python on a variety of Java-supported platforms,
or need to access Java classes under Python, give Jython 2.2 a try.
to post comments)