]> granicus.if.org Git - python/commit
Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silen...
authorGeorg Brandl <georg@python.org>
Sun, 24 Oct 2010 15:11:22 +0000 (15:11 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 24 Oct 2010 15:11:22 +0000 (15:11 +0000)
commit08be72d0aa0112118b79d271479598c218adfd23
tree5c885e7f573248c725915ed00f4a0476daa7a556
parent872a702bbd3c471278e07d773f7a5a49eb9dc5b2
Add a new warning gategory, ResourceWarning, as discussed on python-dev.  It is silent by default,
except when configured --with-pydebug.

Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
12 files changed:
Doc/library/exceptions.rst
Doc/library/gc.rst
Doc/library/warnings.rst
Include/pyerrors.h
Lib/test/exception_hierarchy.txt
Lib/test/test_gc.py
Lib/warnings.py
Misc/NEWS
Modules/gcmodule.c
Objects/exceptions.c
Python/_warnings.c
Python/errors.c