Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When will Jython support Python 3?

According to Jython's documentation:

Jython is an implementation of the Python language for the Java platform. Jython 2.5 implements the same language as CPython 2.5, and nearly all of the Core Python standard library modules. (CPython is the C implementation of the Python language.) Jython 2.5 uses the same regression test suite as CPython, with some minor modifications.

Are there any plans to support Python 3? If so, when is it scheduled to be released?

like image 830
Adam Paynter Avatar asked Feb 28 '10 12:02

Adam Paynter


People also ask

Will there be a Jython 3?

Jython 3. x development is in progress. @BhabaniSankarMishra looking at the commit history, it's mildly alive github.com/jython/jython3/commits/master but I wouldn't count on Jython 3 being officially released anytime soon.

What version of Python does Jython support?

It was released on 21 March 2020 and is compatible with Python 2.7. Although Jython implements the Python language specification, it has some differences and incompatibilities with CPython, which is the reference implementation of Python.

Is Jython still supported?

The current release (a Jython 2.7. x) only supports Python 2 (sorry). There is work towards a Python 3 in the project's GitHub repository. Jython implementations are freely available for both commercial and non-commercial use.

Is Jython better than Python?

Difference between Python and Jython Reference implementation of Python, called CPython, is written in C language. Jython on the other hand is completely written in Java and is a JVM implementation. Standard Python is available on multiple platforms. Jython is available for any platform with a JVM installed on it.


2 Answers

Another update: an August 2020 commit clarified that the repository to look at is not the Jython3 one but the main Jython repo. Anyway "The latest version of Jython remains 2.7.x. A Jython 3.x should appear, but exploratory work towards it is not stable at the time of writing. Please watch the jython-dev mailing list for developements."


Update: 9 years after the question has been originally asked the answer now seems to be not in the near future. Most recent commit is now more than two years old (July 18, 2017), and developers say that the 3.x branch is "resting".


My original answer:

5 years after the question has been asked, the answer is still "it will come, but the time frame for an initial release is not clear yet".

What we can say is that now there is a jython3 repository targetting Python 3.5. README.md, dated 28 May 2015, says:

This repo is in the very early stages of development of a release of Jython 3.5. Planned goals are language and runtime compatibility with CPython 3.5, along with continued substantial support of the Python ecosystem.

Jython FAQ page states that:

Jython 3.x development is in progress.

like image 116
Diego Avatar answered Sep 20 '22 05:09

Diego


Jython roadmap is definitely outdated.
However, on Frank Wierzbicki's Weblog (one of Jython's main developers) you can get an update, telling that Python 3 is definitely on the radar.

Unfortunately, it is not yet clear when, as it is stated in a comment in that same blog from 2010:

Jython will reach 2.6 and later a 3.x, but it's hard to give a solid time frame. I'm hoping to get a 2.6 out in a few months.

In an interview in 2017, Wierzbicki stated that Python 3 is desirable but difficult.

Langfristig wollen wir eine 3.x-Version veröffentlichen, aber das ist ein langwieriger Prozess, weil es eine große Menge an Veränderungen in der 3.x-Serie gab.

English:

We want to publish a version 3.x in the long run, but that is a drawn-out process, because there were a lot of changes in the 3.x series.

Jython – Python in der Java-Welt [Pirates of the JVM], JAXenter, 2017-04-12.

like image 29
rob Avatar answered Sep 23 '22 05:09

rob