Error Code Portal
PythonPythonError code

SyntaxError

SyntaxError

Code SyntaxError · An issue reported by Python.

Raised when the parser encounters a syntax error. This may occur in an import statement, in a call to the built-in functions compile(), exec(), or eval(), or when reading the initial script or standard input (also interactively). The str() of the exception instance returns only the error message. Details is a tuple whose members are also available as separate attributes.

Troubleshooting and diagnostic links

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