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:

  1. getting address function
  2. 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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -