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


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to