<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 8, 2013 at 10:54 PM, dieter <span dir="ltr"><<a href="mailto:dieter@handshake.de" target="_blank">dieter@handshake.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">jamadagni <<a href="mailto:samjnaa@gmail.com">samjnaa@gmail.com</a>> writes:<br>
> ...<br>
I cannot help you with "ctypes". But, if you might be able to use<br>
"cython", then calling callbacks is not too difficult<br>
(you can find an example in e.g. my "dm.xmlsec.binding").<br>
<br>
Note, however, that properly handling the GIL ("Global Interpreter Lock")<br>
may be of great importance when the Python/C boundary is crossed --<br>
at least when you intend to use your code in a multi thread environment.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Cython is good.<br><br></div><div>So is the new cffi, which might be thought of as a safer (API-level) version of ctypes (which is ABI-level). <br>
</div></div><br></div></div>