Richard Oudkerk added the comment: On 14/02/2013 3:16pm, Antoine Pitrou wrote: > Mmmh... thread switching is already blocked at shutdown: > http://hg.python.org/cpython/file/0f827775f7b7/Python/ceval.c#l434
But in Py_Finalize(), call_py_exitfuncs() is called *before* _Py_Finalizing is set to a non-NULL value. http://hg.python.org/cpython/file/0f827775f7b7/Python/pythonrun.c#l492 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15528> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com