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.