[issue10068] global objects created in some module are not destroyed when last reference to that module is released

Antoine Pitrou report at bugs.python.org
Tue Oct 12 23:19:39 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> Therefore, I propose we remove the Py_REFCNT == 1 guard in
> module_dealloc, and simply leave as an open bug that modules will clear 
> their dictionaries on deallocation.

Yes, I think it's the best solution. People can easily copy the dict if they want to keep it around after the module gets destroyed.

----------

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


More information about the Python-bugs-list mailing list