PyCall, pycall on python object that overloads __call__

pycall

#1

Can I use pycall to call a python object that overloads the call member? It doesn’t seem to work.


#2

It should work. Make sure that you actually have the Python object, not not the Julia conversion thereof.

(e.g. if you have a module foo = pyimport("...."), then do foo["member"] rather than foo[:member] to suppress the automatic conversion to Julia.)