Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)

Side by Side Diff: Doc/library/warnings.rst

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/unittest.mock.rst ('k') | Doc/library/zipfile.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`warnings` --- Warning control 1 :mod:`warnings` --- Warning control
2 =================================== 2 ===================================
3 3
4 .. index:: single: warnings 4 .. index:: single: warnings
5 5
6 .. module:: warnings 6 .. module:: warnings
7 :synopsis: Issue warning messages and control their disposition. 7 :synopsis: Issue warning messages and control their disposition.
8 8
9 **Source code:** :source:`Lib/warnings.py` 9 **Source code:** :source:`Lib/warnings.py`
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 | | (ignored by default). | 82 | | (ignored by default). |
83 +----------------------------------+-------------------------------------------- ---+ 83 +----------------------------------+-------------------------------------------- ---+
84 | :exc:`ImportWarning` | Base category for warnings triggered during | 84 | :exc:`ImportWarning` | Base category for warnings triggered during |
85 | | the process of importing a module (ignored by | 85 | | the process of importing a module (ignored by |
86 | | default). | 86 | | default). |
87 +----------------------------------+-------------------------------------------- ---+ 87 +----------------------------------+-------------------------------------------- ---+
88 | :exc:`UnicodeWarning` | Base category for warnings related to | 88 | :exc:`UnicodeWarning` | Base category for warnings related to |
89 | | Unicode. | 89 | | Unicode. |
90 +----------------------------------+-------------------------------------------- ---+ 90 +----------------------------------+-------------------------------------------- ---+
91 | :exc:`BytesWarning` | Base category for warnings related to | 91 | :exc:`BytesWarning` | Base category for warnings related to |
92 | | :class:`bytes` and :class:`buffer`. | 92 | | :class:`bytes` and :class:`bytearray`. |
93 +----------------------------------+-------------------------------------------- ---+ 93 +----------------------------------+-------------------------------------------- ---+
94 | :exc:`ResourceWarning` | Base category for warnings related to | 94 | :exc:`ResourceWarning` | Base category for warnings related to |
95 | | resource usage. | 95 | | resource usage. |
96 +----------------------------------+-------------------------------------------- ---+ 96 +----------------------------------+-------------------------------------------- ---+
97 97
98 98
99 While these are technically built-in exceptions, they are documented here, 99 While these are technically built-in exceptions, they are documented here,
100 because conceptually they belong to the warnings mechanism. 100 because conceptually they belong to the warnings mechanism.
101 101
102 User code can define additional warning categories by subclassing one of the 102 User code can define additional warning categories by subclassing one of the
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 protected. This argument exists primarily for testing the :mod:`warnings` 403 protected. This argument exists primarily for testing the :mod:`warnings`
404 module itself. 404 module itself.
405 405
406 .. note:: 406 .. note::
407 407
408 The :class:`catch_warnings` manager works by replacing and 408 The :class:`catch_warnings` manager works by replacing and
409 then later restoring the module's 409 then later restoring the module's
410 :func:`showwarning` function and internal list of filter 410 :func:`showwarning` function and internal list of filter
411 specifications. This means the context manager is modifying 411 specifications. This means the context manager is modifying
412 global state and therefore is not thread-safe. 412 global state and therefore is not thread-safe.
OLDNEW
« no previous file with comments | « Doc/library/unittest.mock.rst ('k') | Doc/library/zipfile.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+