[Python-3000] Possible py3k problem.
theller at ctypes.org
Wed Nov 19 20:15:00 CET 2008
Victor Stinner schrieb:
> Le Wednesday 19 November 2008 15:39:43 Martin (gzlist), vous avez écrit :
>> This is covered in the documentation, isn't it?
>> Important note for callback functions:
>> Make sure you keep references to CFUNCTYPE objects as long as they are
>> used from C code. ctypes doesn't, and if you don't, they may be
>> garbage collected, crashing your program when a callback is made.
> Oh yes, I remember this problem... I took me hours/days to understand the
> Is there a FAQ for ctypes? To list the most common problems. The bug is in the
> documentation :-)
Ok, so can someone please contribute a patch for the docs to fix this 'bug'?
Or write a ctypes FAQ somewhere (where?)
More information about the Python-3000