Help with implementing callback functions using ctypes
dieter
dieter at handshake.de
Thu May 9 01:54:57 EDT 2013
jamadagni <samjnaa at gmail.com> writes:
> ...
I cannot help you with "ctypes". But, if you might be able to use
"cython", then calling callbacks is not too difficult
(you can find an example in e.g. my "dm.xmlsec.binding").
Note, however, that properly handling the GIL ("Global Interpreter Lock")
may be of great importance when the Python/C boundary is crossed --
at least when you intend to use your code in a multi thread environment.
More information about the Python-list
mailing list