[issue15528] Better support for finalization with weakrefs

Antoine Pitrou report at bugs.python.org
Thu Feb 14 23:32:57 CET 2013


Antoine Pitrou added the comment:

> 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

Ah, right. But is it any different from, e.g., registering an atexit
handler from a daemon thread?
In any case, I think it's just something we'll have to live with. Daemon
threads are not a terrific idea in general.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15528>
_______________________________________


More information about the Python-bugs-list mailing list