Re: ctypes:passing python class instances through c and back

2007-07-29 Thread Gabriel Genellina
En Thu, 26 Jul 2007 12:18:04 -0300, m2i3k [EMAIL PROTECTED] escribió: I have C code with requires me to register a python callback. I am able to get the callback working well using ctypes if I use global functions without any context argument for the callback. Now I want to register a python

ctypes:passing python class instances through c and back

2007-07-26 Thread m2i3k
Hi I have C code with requires me to register a python callback. I am able to get the callback working well using ctypes if I use global functions without any context argument for the callback. Now I want to register a python class member function for callback, and give self as the context