jpype icon indicating copy to clipboard operation
jpype copied to clipboard

Comparison of ENUM with Python object fails

Open Thrameos opened this issue 4 years ago • 1 comments

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.

Thrameos avatar May 10 '21 15:05 Thrameos

https://github.com/jpype-project/jpype/issues/992

Could you please help in resolving the same or is there any work around ?

rgvlrm avatar Jul 27 '21 09:07 rgvlrm