From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 4 Jan 2022 12:03:58 +0000 (-0800) Subject: bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30396) X-Git-Tag: v3.9.10~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f082e2bf43c1367e30d00874267dd25f7256cd0;p=thirdparty%2FPython%2Fcpython.git bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30396) `ResourceWarning` is ignored by default. Document this behaviour, for consistency with others in this table such as `DeprecationWarning`. Documentation PR can skip NEWS file. Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit b949845b36b999185ed2bdf8a04dca1da39f3002) Co-authored-by: Hugo van Kemenade Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 9c1743cad23c..4f05e1460bba 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -105,7 +105,7 @@ The following warnings category classes are currently defined: | | :class:`bytes` and :class:`bytearray`. | +----------------------------------+-----------------------------------------------+ | :exc:`ResourceWarning` | Base category for warnings related to | -| | resource usage. | +| | resource usage (ignored by default). | +----------------------------------+-----------------------------------------------+ .. versionchanged:: 3.7