RandomPhobia
RandomPhobia

Reputation: 4822

Differences between Jython and Python

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?

Upvotes: 16

Views: 21135

Answers (4)

tabchas
tabchas

Reputation: 1402

Check out these websites:

1) Differences between CPython and Jython

2) Jython FAQ

Upvotes: 1

Aqeel
Aqeel

Reputation: 143

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.

Upvotes: 6

iCurious
iCurious

Reputation: 8313

In a nutshell

Differences of - Python & Jython

Python

  1. C
  2. Multi-platform
  3. Compiles to .pyc
  4. Extend with C
  5. GIL 1*
  6. Python Garbage Collection

1*. Global Interpreter Lock, explained in Documentation Python documentation, chapter 8.1 (1)

Jython

  1. 100% Java
  2. Any JVM (currently 1.1+)
  3. Compiles to .class
  4. Extend with Java
  5. Truly multi-threaded
  6. Java garbage collection

For more information there is nothing better than visiting there on website

Upvotes: 18

Daniel Pryden
Daniel Pryden

Reputation: 60997

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.

Upvotes: 11

Related Questions