How to call a python function by name from the C-API? -
from c-api, call python function name. calling function list of python objects arguments.
it not clear me in python documentation how "callable" object main python interpreter.
any appreciated in:
- getting address function
- calling function pythonobject's arguments.
i'm using python 2.x series development.
basically, use python c api module function contained in, query module dictionary function. that's more or less same python runtime internally when python code invokes function somewhere.
relevant functions api @ pyimport_importmodule, pymodule_getdict, pydict_getitem , pyobject_callxxx family of functions.
Comments
Post a Comment