This version adds several conveniences to make using Java from Python more seamless:
- The Java class hierarchy is now reflected in Python, so
isinstance
andissubclass
now work correctly with Java classes and objects. - Java exceptions are now represented as objects of their actual type rather than a generic
JavaException
class. In conjunction with the previous point, this means that standard Pythontry ... except
syntax can now be used to catch Java exceptions. - Python “unbound method” syntax is now supported for Java objects, e.g.
ClassName.method(instance, args)
.