Top
Jython 2.7.4

Document “Differences between CPython and Jython”


Differences between CPython and Jython

CPython and Jython are two different implementations of the Python language. While a Language Reference exists for the Python language, there are a number of features of the language that are incompletely specified. The following lists all known differences between the two implementations of the Python language. These differences range from the trivial -- Jython prints "1.0E20" where CPython prints "1e+020" -- to the dramatic -- everything in Jython is an instance of a class. At some point more effort should be made to separate the interesting differences from the mundane.

Any other differences not listed here can probably be considered a bug in Jython. Understand of course that CPython and Jython advance at different paces. All efforts are made to keep the two implementations in sync, but that's not always possible.

This list has been updated to describe the differences between Jython-2.0 and CPython 2.0

Syntax

Standard types, functions and behavior

Extension modules

Interpreter and environment