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]>
Python-bugs-list mailing list