[issue4260] ctypes.xFUNCTYPE are decorators.

Kevin Watters report at bugs.python.org
Thu Nov 6 00:12:11 CET 2008


Kevin Watters <kevinwatters at gmail.com> added the comment:

As far as I know, the above code will fail randomly in release mode if 
you have multiple threads running Python, because when ctypes calls out 
to CFUNCTYPE functions, it releases the GIL.

For decorating a python function to give to qsort, maybe you can use 
PYFUNCTYPE?

----------
nosy: +kevinwatters

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4260>
_______________________________________


More information about the Python-bugs-list mailing list