[Cython] Callback functions for C lib in Python
Robert Bradshaw
robertwb at math.washington.edu
Sun Apr 26 04:02:40 CEST 2009
On Apr 25, 2009, at 6:25 PM, Mohamed Lrhazi wrote:
> 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?
Yes, there's an example of callbacks in the Demos folder of Cython.
- Robert
More information about the Cython-dev
mailing list