]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30396)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Jan 2022 12:03:58 +0000 (04:03 -0800)
committerGitHub <noreply@github.com>
Tue, 4 Jan 2022 12:03:58 +0000 (12:03 +0000)
`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 <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/warnings.rst

index 9c1743cad23cb780529479b2056ce327499e800a..4f05e1460bbab200bf885646ab91227370e58a72 100644 (file)
@@ -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