Skip to content

Auto Serialization of PyObject #464

@prabhuk12

Description

@prabhuk12

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions