Jython

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Jython
Jython Logo
Latest release 2.2.1 / 13 October 2007
Preview release 2.5 Beta 3 / 9 March 2009
Written in Python and Java
Operating system Cross-platform
Platform Java Virtual Machine
Type Python Programming Language Interpreter
License mixed, see License terms
Website www.jython.org

Jython, successor of JPython, is an implementation of the Python programming language written in Java.

Contents

[edit] Overview

Jython programs can seamlessly import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules. Jython includes almost all of the modules in the standard Python programming language distribution, lacking only some of the modules implemented originally in C. For example, a user interface in Jython would be written with Swing, AWT or SWT. Jython compiles to Java bytecode (intermediate language) either on demand or statically.

Jython also includes jythonc, a compiler that converts Python source code into Java bytecode. This allows Python programmers to write classes which can be fully utilized by a Java program.

[edit] License terms

Jython is released under a mix of three licenses:[1]

  1. Python Software Foundation License (v2)
  2. Jython 2.0, 2.1 license
  3. JPython 1.1.x Software License.

The first two are permissive free software licenses. The third also appears to be but this is unclear because neither Free Software Foundation or Open Source Initiative have reviewed and commented on it.

[edit] History

Jim Hugunin created Jython in late 1997, and developed it until 1999. In February 1999, Barry Warsaw took over as the primary developer. In October 2000, Jython moved to SourceForge. For a long time, Samuele Pedroni did most of the work to maintain and develop Jython. To the end of 2004, Pedroni stepped down as the primary developer to concentrate his effort to PyPy, but he is still considered the authority on Jython internals. In January 2005, Brian Zimmer received a grant from the Python Software Foundation to develop Jython. In December 2005, Frank Wierzbicki succeeded Zimmer as the primary developer. During 2005, development was slow due to lack of knowledgeable developers.

On March 3, 2008, it was announced that Sun Microsystems hired Ted Leung and Frank Wierzbicki to work on Jython and Python, similar to Sun's hiring of two JRuby developers.[2] Development progresses steadily,[3][4] and Jython can now even run Django, a Python framework comparable to Ruby on Rails.[5]

[edit] Status and roadmap

The current release is Jython-2.2.1. It includes improvements to Java integration and implements the same set of language features as CPython 2.2. CPython 2.5 is targeted for the next release[6].

Developments are going steady and an alpha version corresponding to the CPython 2.5 release has been available since July 2008 [7][8][9]. As of January 9, 2009, a beta version, Jython 2.5b1, is available.

[edit] Usage

[edit] See also

[edit] References

[edit] External links

Personal tools