I am a heavyuser of JEP and thank you for everything this community does. I have been working with the 3.8 version of jep and recently upgraded to 4.1.1. In 4.1.1 all the collection constituent objects have been replaced with PyObject instead of the primitive java type like the int or string etc. As an example df.dtype.tolist() gives a response of ArrayList where the items are PyObject. If we are trying to access this in a different thread, that gives thread access error. If we try to serialize this while arraylist is serializable, the PyObject is not and it fails. My question is
a. Is there an easy way to specify to jep to break the PyObject bindings and bring it entirely into the JVM world without any JNI
b. Is there an automatic conversion I can tell JEP to say, get this pyobject "as" native instead of iterating through individual elements
c. Is there any method available in PyObject where it will automatically convert it into the appropriate java type ?
I am a heavyuser of JEP and thank you for everything this community does. I have been working with the 3.8 version of jep and recently upgraded to 4.1.1. In 4.1.1 all the collection constituent objects have been replaced with PyObject instead of the primitive java type like the int or string etc. As an example df.dtype.tolist() gives a response of ArrayList where the items are PyObject. If we are trying to access this in a different thread, that gives thread access error. If we try to serialize this while arraylist is serializable, the PyObject is not and it fails. My question is
a. Is there an easy way to specify to jep to break the PyObject bindings and bring it entirely into the JVM world without any JNI
b. Is there an automatic conversion I can tell JEP to say, get this pyobject "as" native instead of iterating through individual elements
c. Is there any method available in PyObject where it will automatically convert it into the appropriate java type ?