diff options
author | Georg Brandl <georg@python.org> | 2010-10-24 15:11:22 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-24 15:11:22 (GMT) |
commit | 08be72d0aa0112118b79d271479598c218adfd23 (patch) | |
tree | 5c885e7f573248c725915ed00f4a0476daa7a556 /Doc/library/warnings.rst | |
parent | 872a702bbd3c471278e07d773f7a5a49eb9dc5b2 (diff) | |
download | cpython-08be72d0aa0112118b79d271479598c218adfd23.zip cpython-08be72d0aa0112118b79d271479598c218adfd23.tar.gz cpython-08be72d0aa0112118b79d271479598c218adfd23.tar.bz2 |
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.
Diffstat (limited to 'Doc/library/warnings.rst')
-rw-r--r-- | Doc/library/warnings.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 309fec5..64689ad 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -82,6 +82,9 @@ following warnings category classes are currently defined: | :exc:`BytesWarning` | Base category for warnings related to | | | :class:`bytes` and :class:`buffer`. | +----------------------------------+-----------------------------------------------+ +| :exc:`ResourceWarning` | Base category for warnings related to | +| | resource usage. | ++----------------------------------+-----------------------------------------------+ While these are technically built-in exceptions, they are documented here, |