]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33252: Document that ResourceWarning is ignored by default (GH-30358)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Tue, 4 Jan 2022 11:34:31 +0000 (13:34 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jan 2022 11:34:31 +0000 (03:34 -0800)
`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
Doc/library/warnings.rst

index fe11aabbcbdd6b480892384705b777ea6bd31e21..289b28229e1a00826a134c174c63403f47213bb5 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