mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation (gh-122844)
--------- Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
This commit is contained in:
parent
88bfe4c47b
commit
5f7906715a
2 changed files with 6 additions and 1 deletions
|
|
@ -897,6 +897,9 @@ The following exceptions are used as warning categories; see the
|
|||
|
||||
Base class for warnings about dubious syntax.
|
||||
|
||||
This warning is typically emitted when compiling Python source code, and usually won't be reported
|
||||
when running already compiled code.
|
||||
|
||||
|
||||
.. exception:: RuntimeWarning
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,9 @@ The following warnings category classes are currently defined:
|
|||
| | unless triggered by code in ``__main__``). |
|
||||
+----------------------------------+-----------------------------------------------+
|
||||
| :exc:`SyntaxWarning` | Base category for warnings about dubious |
|
||||
| | syntactic features. |
|
||||
| | syntactic features (typically emitted when |
|
||||
| | compiling Python source code, and hence |
|
||||
| | may not be suppressed by runtime filters) |
|
||||
+----------------------------------+-----------------------------------------------+
|
||||
| :exc:`RuntimeWarning` | Base category for warnings about dubious |
|
||||
| | runtime features. |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue