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 @@ -890,6 +890,9 @@ The following exceptions are used as warning categories; see the
890
890
891
891
Base class for warnings about dubious syntax.
892
892
893
+ This warning is typically emitted when compiling Python source code, and usually won't be reported
894
+ when running already compiled code.
895
+
893
896
894
897
.. exception :: RuntimeWarning
895
898
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