Registering a python function in C

fernando fernandofariajunior at gmail.com
Thu Aug 30 17:21:14 EDT 2007


Could someone post an example on how to register a python function as
a callback in a C function? It expects a pointer to PyObject... how do
I expose that? Basically, the signature of the function is
foo(PyObject* obj), where obj is the callback function... It's not
exactly extending or embedding, I've looked at those examples but they
don't really show how to do this...

Thanks for the help!




More information about the Python-list mailing list