Wednesday 15 August 2012

python - Would any CPython 2.7 code work in Jython 2.7b3? -



python - Would any CPython 2.7 code work in Jython 2.7b3? -

frank wierzbicki in blog post has written "jython 2.7b3 brings language level compatibility 2.7 version of cpython."

does mean cpython 2.7 code work jython?

i have big code written in cpython 2.7. since want integrate java modules, extremely interested in way of migrating jython without rewriting of code. considering libraries, utilize lot of lxml (as described here) not compatible previous versions jython.

no, not all code works in cpython 2.7 work in jython, in same way code tied specific os , won't work on other os-es (e.g. windows-specific python code won't work on linux, , vice versa).

the syntax work, if script requires specific add-on modules such lxml, not work. because lxml c-api extension, , jython doesn't back upwards python c-api.

similarly, if code uses multiprocessing module, won't work on jython, because part of standard library not included.

python migration lxml jython

No comments:

Post a Comment