Kevin Watters <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue4260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
