Ideas for improving Jython
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Ideas for improving Jython

Most new work should target Jython 3.x (; or should have a plan to target both Jython 2.7.x and Jython 3.x.

CExtAPI support through JyNI

Continue work on supporting the C Extension API (, especially support for Windows.

Implement Python bytecode compiler

Rather than compiling to Java bytecode, emit Python bytecode instead. Note that it still may make sense to use $py.class output instead of .pyc, but that should be a packaging option.


Implement support for CFFI: With recent support of large methods in Python via the use of CPython to do the compilation, we should be able

Port Jython grammar to Antlr 4 from Antlr 3

Such work should start by examining the grammar defined here,, and compare to It should also take account the variant to support partial parsing for console usage; as well as to continue to support the ast/_ast modules.

site-packages support in a singlejar deployment

Starting with, develop a packaging solution for Lib/, including Lib/site-packages, that works with a Zip Filesystem Provider. Such a solution needs to be compatible with all filesystem usage, including being able to introspect metadata at the file level.

Implement asyncio support for Jython 3

Such work should target Netty for maximum performance, instead of the current socket/select/ssl emulation, which also layers on Netty.

Support MyPy for Java types

It should be possible for MyPy to typecheck Jython code, including the use of imported Java types.

Other ideas for Jython 3?

Please add them here by submitting a PR.