Calling local functions from the C API

Jon Parise jon at csh.rit.edu
Sat Nov 16 16:57:36 EST 2002


This seems like it should be a common, easy task, so perhaps I'm
complicating the problem.

I'm familiar with calling functions using PyObject_CallObject().
I generally use PyImport_ImportModule() to import a callable object
from some module before executing it.

However, I'm unclear as to how to go about getting a callable object
from the current local scope (i.e. not from a named module).

Help, please. =)

-- 
Jon Parise (jon at csh.rit.edu)  ::  http://www.csh.rit.edu/~jon/




More information about the Python-list mailing list