How to use a non built-in data type?

20 views
Skip to first unread message

Siddharth Jain

unread,
Nov 15, 2023, 8:45:47 PM11/15/23
to Py4J Support and Comments
I read the Py4J docs and they explain how to use the library with built-in data types.

I have a Java method that returns a non built-in data type (i.e., a class)

public Foo getFoo()

I am able to call the method from Python:

foo = gateway.entry-Point.getFoo()

and get a response back but how do I now access the properties of foo in Python?

>>> foo
JavaObject id=o0

>>> foo.XXX
<py4j.java_gateway.JavaMember object at 0x102276b20>


Reply all
Reply to author
Forward
0 new messages