Differences - Python & Jython
- C
- Multi-platform
- Compiles to .pyc
- Extend with C
- GIL
- Python Garbage Collection
Jython
| - 100% Java
- Any JVM (currently 1.1+)
- Compiles to .class
- Extend with Java
- Truly multi-threaded
- Java garbage collection
General Bits
- __del__ is not reliable because the Java garbage collector is used
- Java only has Unicode strings
- Cannot mix Python and Java classes in multiple inheritance
- Java instances cannot have dynamic attributes
- Boolean type difficult to address:
public void do(boolean b);
- Jython changes with two fronts:
Keeping up with CPython language changes
Keeping up with Java language changes
generics (not necessary in Python)
|