[Cython] Callback functions for C lib in Python

Mohamed Lrhazi lrhazi at gmail.com
Sun Apr 26 03:25:46 CEST 2009


Hello,

I am trying to write an extension module, to make a C library
available for use by the Python user.

The lib needs to be passed pointers to callback functions. how do I
code this in Cython, so the actual functions are provided by the
Python code?

Any code examples I could look at for inspiration?

Thanks a lot.
Mohamed.


More information about the Cython-dev mailing list