Jython
From Wikipedia, the free encyclopedia
![]() |
|
| Stable release | 2.5.0[1] / 16 June 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.
[edit] History
Jim Hugunin created Jython in late 1997, initially to be able to replace C by Java for performance-intensive code accessed by Python programs, and developed it until 1999[2]. 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.[3][4]. Development progressed steadily[5][6][7][8], and Jython 2.5.0 was released on June 16, 2009[1].
[edit] Status and roadmap
The current release is Jython 2.5.0, available since June 16, 2009. It includes improvements to Java integration and implements the same set of language features as CPython 2.5[1]. With 2.5.0 Jython is able to run popular Python frameworks such as Django, Pylons, or SQLAlchemy[9].
[edit] License terms
Jython is released under a mix of three licenses:[10]
- Python Software Foundation License (v2)
- Jython 2.0, 2.1 license
- 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 the Free Software Foundation nor the Open Source Initiative have reviewed and commented on it.
[edit] Usage
- Jython is one of two scripting languages (with Jacl) used in WebSphere Application Server. It is used in IBM Rational development tools, where Jython projects can be created using wizards. It is used as the main programming language for the JHepWork data analysis framework.
[edit] See also
- WebLogic Server Application Server's wlst tool scripting using Jython
- IBM WebSphere Application Server's wsadmin tool scripting using Jython
- IronPython is an implementation of Python for .NET and Mono, originally created by Jython's creator, Jim Hugunin.
- ZK is a Java Ajax framework that allows glue logic written in Jython.
[edit] References
- ^ a b c Wierzbicki, Franck (2009-06-16). "Jython 2.5.0 Final is out!". http://fwierzbicki.blogspot.com/2009/06/jython-250-final-is-out.html. Retrieved on 2009-07-02.
- ^ Hugunin, Jim (March 2002). "Story of Jython". http://hugunin.net/story_of_jython.html. Retrieved on 2009-06-05. "The story of Jython begins in the spring of 1997 while I was working on my PhD at MIT. While doing some benchmark work comparing the performance of Numeric Python to a variety of other programming languages, I was amazed to discover that Java was as fast as C-code for some simple numeric benchmarks. Previously, I had been uninterested in Java because I saw it as an inferior replacement for Python. Now I saw the possibility that Java could be a replacement for the ugly and error-prone C code that I was writing for the performance intensive parts of my systems."
- ^ Leung (2008-03-03). "The Sun is going to shine on Python". http://www.sauria.com/blog/2008/03/03/the-sun-is-going-to-shine-on-python. Retrieved on 2008-03-03.
- ^ Nutter, Charles (2008-01-03). "Jython's Back, Baby!". http://headius.blogspot.com/2008/01/jythons-back-baby.html. Retrieved on 2008-02-09.
- ^ Baker, Jim (2008-01-03). "Django on Jython: Minding the Gap". http://zyasoft.com/pythoneering/2008/01/django-on-jython-minding-gap.html. Retrieved on 2008-02-17.
- ^ Baker, Jim (2008-06-24). "Flipping the 2.5 Bit for Jython". http://zyasoft.com/pythoneering/2008/06/flipping-25-bit-for-jython.html. Retrieved on 2008-07-12.
- ^ Wierzbicki, Frank (2008-07-15). "Jython 2.5 Alpha Released!". http://fwierzbicki.blogspot.com/2008/07/jython-25-alpha-released.html. Retrieved on 2008-07-16.
- ^ Baker, Jim (2008-06-24). "Flipping the 2.5 Bit for Jython". http://zyasoft.com/pythoneering/2008/06/flipping-25-bit-for-jython.html. Retrieved on 2008-07-12.
- ^ "Jython 2.5 - Why you should upgrade". March 2002. http://journal.thobe.org/2009/06/jython-25-why-you-should-upgrade.html. Retrieved on 2009-06-26.
- ^ "The Jython License". Jython's project. http://www.jython.org/Project/license.html. Retrieved on 2008-02-09.
[edit] External links
- Jython Home Page
- Jython Sourceforge Page
- differences between CPython and Jython
- Charming Jython: Learn how the Java implementation of Python can aid your development efforts
- Learn how to write DB2 JDBC tools in Jython
- Tips for Scripting Java with Jython
- Jython tips for Python programmers
- Jython license information
- Scripting on the Java platform
- Jython Bibliography
|
||||||||||||||


