[Python-checkins] bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30395)
iritkatriel
webhook-mailer at python.org
Tue Jan 4 07:03:44 EST 2022
https://github.com/python/cpython/commit/01b12942d0ba2fd3c2efdfb796e8816efc607ee7
commit: 01b12942d0ba2fd3c2efdfb796e8816efc607ee7
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-01-04T12:03:38Z
summary:
bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30395)
`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 at users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk at users.noreply.github.com>
files:
M Doc/library/warnings.rst
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index fe11aabbcbdd6..289b28229e1a0 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
More information about the Python-checkins
mailing list