File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -897,6 +897,9 @@ The following exceptions are used as warning categories; see the
897
897
898
898
Base class for warnings about dubious syntax.
899
899
900
+ This warning is typically emitted when compiling Python source code, and usually won't be reported
901
+ when running already compiled code.
902
+
900
903
901
904
.. exception :: RuntimeWarning
902
905
Original file line number Diff line number Diff line change @@ -80,7 +80,9 @@ The following warnings category classes are currently defined:
80
80
| | unless triggered by code in ``__main__ ``). |
81
81
+----------------------------------+-----------------------------------------------+
82
82
| :exc: `SyntaxWarning ` | Base category for warnings about dubious |
83
- | | syntactic features. |
83
+ | | syntactic features (typically emitted when |
84
+ | | compiling Python source code, and hence |
85
+ | | may not be suppressed by runtime filters) |
84
86
+----------------------------------+-----------------------------------------------+
85
87
| :exc: `RuntimeWarning ` | Base category for warnings about dubious |
86
88
| | runtime features. |
You can’t perform that action at this time.
0 commit comments