We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.


Raised when the parser encounters a syntax error. This may occur in an import statement, in an exec statement, in a call to the built-in function eval or input, or when reading the initial script or standard input (also interactively).

Instances of this class have attributes filename, lineno, offset and text for easier access to the details. str of the exception instance returns only the message.