![]() ![]() However, on GraalPy only packages in the java namespace can be directly imported. This example works exactly the same on both Jython and GraalPy. Here is an example: > import java.awt as awt There are certain features of Jython’s Java integration that are enabled by default on GraalPy. To make migration easier, you can enable some features using a command line option: -python.EmulateJython. Note that some features of Jython have a negative impact on runtime performance, and are disabled by default. ![]() Thus, a significant migration step will have to be taken to migrate all your code to Python 3.įor Jython-specific features, follow this document to learn about migration to GraalPy. GraalPy does not provide full compatibility with these earlier 2.x versions of Jython. GraalPy, in contrast, is only targeting Python 3.x. Stable Jython release, and these only come in Python 2.x versions. Most Jython code that uses Java integration will be based on a
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |