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


Frank Werezbikky has written "Jethon 2.7b3 tells us the level of language compatibility with the version 2.7 of CPIthon."

Does this mean that any CPython 2.7 code will work with Jethon?

I have a big code in CPython 2.7. Since we want to integrate it with the Java module, I would be extremely interested in one way of migrating to Jyothan without rewriting the code. Keeping the libraries in mind, I use a lot of LXML which was not compatible with the previous versions (as described). "post-text" itemprop = "text">

No, not all code that works in CPIথon 2.7 will work in Geothon, in the same way Some codes are tied to specific OS and other OS-E (such as will not work on Windows) - the numeric Python code will not work on Linux, and vice versa).

Syntax will work, but if the specific add-on module for the script such as Lxml , then they no work This is because lxml is a C-API extension, and Jethon does not support Python C-API.

Similarly, if your code is multiprocessing module, it will not work on Jethon as it does not include that part of the standard library.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -