[issue1402] Interpreter cleanup: order of _PyGILState_Fini and PyInterpreterState_Clear
Guido van Rossum
report at bugs.python.org
Tue Nov 27 19:39:41 CET 2007
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 <report at bugs.python.org>
<http://bugs.python.org/issue1402>
__________________________________
More information about the Python-bugs-list
mailing list