diff options
author | Victor Stinner <vstinner@python.org> | 2020-01-24 09:22:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 09:22:18 (GMT) |
commit | b9783d2e035d2babe8fcd9ec109044c0002c18a2 (patch) | |
tree | 8ff79a1298440a3956717b92451df180388e1bc0 /Doc/library/exceptions.rst | |
parent | e131c9720d087c0c4988bd2a5c62020feb9d1d77 (diff) | |
download | cpython-b9783d2e035d2babe8fcd9ec109044c0002c18a2.zip cpython-b9783d2e035d2babe8fcd9ec109044c0002c18a2.tar.gz cpython-b9783d2e035d2babe8fcd9ec109044c0002c18a2.tar.bz2 |
bpo-39429: Add a new "Python Development Mode" doc page (GH-18132)
Diffstat (limited to 'Doc/library/exceptions.rst')
-rw-r--r-- | Doc/library/exceptions.rst | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 52a505e..df2cda9 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -688,6 +688,10 @@ The following exceptions are used as warning categories; see the Base class for warnings about deprecated features when those warnings are intended for other Python developers. + Ignored by the default warning filters, except in the ``__main__`` module + (:pep:`565`). Enabling the :ref:`Python Development Mode <devmode>` shows + this warning. + .. exception:: PendingDeprecationWarning @@ -699,6 +703,9 @@ The following exceptions are used as warning categories; see the upcoming deprecation is unusual, and :exc:`DeprecationWarning` is preferred for already active deprecations. + Ignored by the default warning filters. Enabling the :ref:`Python + Development Mode <devmode>` shows this warning. + .. exception:: SyntaxWarning @@ -720,6 +727,9 @@ The following exceptions are used as warning categories; see the Base class for warnings about probable mistakes in module imports. + Ignored by the default warning filters. Enabling the :ref:`Python + Development Mode <devmode>` shows this warning. + .. exception:: UnicodeWarning @@ -733,8 +743,10 @@ The following exceptions are used as warning categories; see the .. exception:: ResourceWarning - Base class for warnings related to resource usage. Ignored by the default - warning filters. + Base class for warnings related to resource usage. + + Ignored by the default warning filters. Enabling the :ref:`Python + Development Mode <devmode>` shows this warning. .. versionadded:: 3.2 |