does anyone know which jython version compatible with python 3.6. I checked the jython release note, didn't get a clear clue. Thanks
Asked
Active
Viewed 4,021 times
1
-
2what are you asking? python2.7 is not compatible with python3.6 code in general... i dont know why jython would be any different – Joran Beasley Apr 09 '18 at 18:50
-
its not python 2.7, its jython 2.7 (a different python implementation in java), I tried to run python 3.6 code in jython, seems some not work – user9571515 Apr 09 '18 at 18:55
-
here is a jython download link: http://www.jython.org/downloads.html – user9571515 Apr 09 '18 at 18:55
1 Answers
3
There currently is no official jython 3.x version. There is a github repro, put that is unfinished. You can try that, put it will propably not work. So no, I don't believe you can use CPython 3.6 code and use it on jython without any code changes. It would be the easiest to use CPython or change the code to fit python 2.7

MegaIng
- 7,361
- 1
- 22
- 35
-
Thanks for the info here! I found Jython is very convenient for running java api in python. Would you please recommend other methods for running java libraries in python 3.6 if knows? – user9571515 Apr 09 '18 at 20:33
-
searched online, found PY4J, does anyone know is PY4J works for python 3.6 – user9571515 Apr 09 '18 at 20:38
-
@user9571515 Check the download page. There are versions for python 3.x but they're untested. Most likely they will work. – MegaIng Apr 09 '18 at 20:42
-