Extension modules, Threading, and the GIL

hg hansgeunsmeyer at earthlink.net
Thu Jan 2 05:02:54 CET 2003

I knew I had overlooked at least one thing... :)

To see if there is a current Python thread state at all, you can not
use PyThreadState_GET in a debug build... (because if there isn't one,
Python aborts). But _PyThreadState_Current is a global variable that
you can check directly.


More information about the Python-list mailing list