Skip to content

Latest commit

 

History

History
39 lines (19 loc) · 1.58 KB

jyspecific.md

File metadata and controls

39 lines (19 loc) · 1.58 KB
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-Specific Features

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.

The Jython Registry

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.

Embedding

Java classes can be embedded in Python scripts, and Python scripts invoked and inspected from Java code.

Collection and Array support

Jython provides ways to smoothly integrate Java collections and arrays with Python data structures.

Compiling to Java class files

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).

Database interaction

The zxjdbc module provides a Pythonesque interface on top of the Java Database Connectivity API (JDBC).