Can python modules be used from Java programs using Jython without modification? -
can python code used java using jython, without modifying python code in way prevent working correctly in cpython?
if yes, steps have taken (in java code)?
if not, reasons cannot done (so far)?
- python modules can depend on python versions (e.g. python 3 vs python 2 , may require minimum python version (e.g. 2.6) in case of using dedicated language features introduced in python version)
- python modules may depend on c extensions won't work jython
- python modules may use cpython features not available in jython
in general: python-only code should work jython - in cases: have test, test, test. written modules provide unittests - should try run tests jython , see what's happening.
Comments
Post a Comment