title |
---|
Jython-Specific Features |
{% assign book = site.data.book.baseurl %} {% assign datatypes = book | append: site.data.book.datatypes['url'] %} {% assign integration = book | append: site.data.book.integration['url'] %} {% assign database = book | append: site.data.book.database['url'] %}
Jython has a number of features which allow easier integration with Java and make use of the rich environment provided by joining the two languages.
Jython works with a local Jython registry file to provide a platform independent equivalent to the Windows registry. It combines this with environment variable and command line information at startup.
Java classes can be embedded in Python scripts, and Python scripts invoked and inspected from Java code.
Jython provides ways to smoothly integrate Java collections and arrays with Python data structures.
The compileall
module in Jython produces Java byte code in Java class files from Python code. It otherwise corresponds to the CPython module of the same name. (Earlier versions used a tool called jythonc which was removed fully in Jython 2.5).
The zxjdbc module provides a Pythonesque interface on top of the Java Database Connectivity API (JDBC).