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
| | 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. |