Anatoly A. Kazantsev wrote:

> Yes, I can use this pointer :-)
> 
> But how can I wrap callbacks without such pointers.

You can't, except in a very limited way. For example,
you could store a reference to your Python callback
in a global variable, but then you would only be able
to have one callback of a given type installed at
a time.

> Or this pointers is a 'good'
> practise in designing of callback functions?

Yes. Any competently-designed C-level callback
mechanism will provide some way for the user to have
data of his choosing passed to the callback function,
on a per-callback basis.

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

Reply via email to