I know Jython converts Python code into Java byte code, but are there any syntax changes between the two? and as a side question is Jython 3.x usable yet or is it still being ported?
-
4Read the website.Gareth Latty– Gareth Latty2012-06-12 00:20:04 +00:00Commented Jun 12, 2012 at 0:20
-
Syntax changes? Not any intentional ones. Jython has recently released the alpha version of 2.7. It's likely it will be a while before a 3.x version will be released.Joel Cornett– Joel Cornett2012-06-12 00:26:44 +00:00Commented Jun 12, 2012 at 0:26
4 Answers
In a nutshell
Differences of - Python & Jython
Python
- C
- Multi-platform
- Compiles to .pyc
- Extend with C
- GIL 1*
- Python Garbage Collection
1*. Global Interpreter Lock, explained in Documentation Python documentation, chapter 8.1 (1)
Jython
- 100% Java
- Any JVM (currently 1.1+)
- Compiles to .class
- Extend with Java
- Truly multi-threaded
- Java garbage collection
For more information there is nothing better than visiting there on website
1 Comment
Jython is an implementation of the Python language. It is not a different language at all.
According to the Jython website, the latest stable version is currently 2.5.3b1, and the latest development version is 2.7a2. As far as I know, no one is currently working on an 3.x-compatible version of Jython.
Comments
There are 3 major implementations available for Python language. Jython is a java implementation, Cython is C implementation and IronPython is c# implementation. As far as Python language syntax is concerned, it remains consistent in all implementations. Regarding the last part of your question, I dont think Jython version 3.x is released or in use yet, probably you meant python 3.x - if so, yes it is.