[issue477863] Print warning at shutdown if gc.garbage not empty

Antoine Pitrou report at bugs.python.org
Wed Aug 4 12:19:38 CEST 2010


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

Displaying the full list may be unwieldy if it's very large. Instead, we could by default display the following kind of message:

Python warning: 5 uncollectable objects remaining at interpreter shutdown. Use gc.DEBUG_UNCOLLECTABLE to list them.

And list gc.garbage only if gc.DEBUG_UNCOLLECTABLE is defined.

----------
versions:  -Python 2.7

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


More information about the Python-bugs-list mailing list