On Mon, 23 Feb 2009 23:48:57 -0800 Robert Bradshaw <[email protected]> wrote:
> It's standard practice to have such void* arguments for callback
> functions. Otherwise you'd have to store something globally and not
> use two concurrently (which is obviously not ideal).
Good practise :-)
What about such:
cpdef python_foo(python_callback):
cdef c_callback():
python_callback()
c_foo(c_callback)
where c_foo and c_callback from some C lib.
I know in cython function nesting is not implemented. But if it was, is it
possible
to wrap callbacks this way?
--
Anatoly A. Kazantsev <[email protected]>
pgpIVFiIEmAav.pgp
Description: PGP signature
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
