PyCall.jl icon indicating copy to clipboard operation
PyCall.jl copied to clipboard

How to detect if Python object is class/function/property

Open ejmeitz opened this issue 2 years ago • 0 comments

Hello,

I have a couple PyObject's that return the following when printed to screen: PyObject <property object at 0x000001DA767E5940> PyObject <function __DataCollection_clone at 0x000001DA75482AC0> PyObject <class 'ovito.data.DataCollection'>

Is there some property I can access that will tell me if a random PyObject is a class, function or property (besides parsing that string)? I'm trying to use metaprogramming to auto generate class/function signatures while ignoring properties. Thanks!

ejmeitz avatar Sep 01 '23 12:09 ejmeitz