Guido van Rossum added the comment: > No, _PyGILState_Fini does not invoke any python code
You're right. It calls PyThread_delete_key(). I thought this would delete entries from a dictionary (thereby potentially invoking Python code via Py_DECREF()), but it doesn't -- it just frees some memory. So I'm okay with swapping the order in 2.6 and 3.0. I'm still not 100% comfortable with doing this in 2.5, especially since Ronald found a work-around for his immediate issue. __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1402> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com