Error Code Portal
PythonPythonWarning or status code

SyntaxWarning

SyntaxWarning

Code SyntaxWarning · An issue reported by Python.

This entry includes warnings or status values that are not errors. Check the original documentation for the conditions under which they are returned.

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.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.