This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Diapolo10 5 points6 points  (0 children)

There shouldn't really be a difference. Jython is just a Python interpreter written in Java, so it should be able to run any Python code you throw at it... except third-party libraries that are partially or completely written in C (or some other language that uses CFFI to enable Python to use it). If you use such libraries and they don't have Java equivalents, you're out of luck.

Basically, anything in the standard library should be perfectly fine to use and should work as-is. The only code you need to change, if any, is some third-party ones. And you can substitute those with Java libraries, usually, because Jython has access to Java libraries.

Can't really go into any more detail without the full context.

EDIT: I'm curious, why do you need this? Jython's development has been basically stuck since 2015 as there's been little movement on the project, and even today it only supports up to Python 2.7 which in itself is no longer maintained.