jpype
jpype copied to clipboard
Comparison of ENUM with Python object fails
While working on the JForward code, I ran into this error.
import jpype
jpype.startJVM()
jo = jpype.JClass('java.lang.Character').UnicodeScript.GEORGIAN
jo==jo
object()==jo
jo==object()
This produces a SystemError because the conversion pointer is still null. Although this is low impact it should return False rather than throw.
https://github.com/jpype-project/jpype/issues/992
Could you please help in resolving the same or is there any work around ?