

>>> Print 'Hello World' File "<stdin>", line 1 Print 'Hello World' ^ SyntaxError: invalid syntax >>> print 'Hello World' Hello World
Observe that aSyntaxError is raised and also the location where the error was detected is printed. This is what an error handler for this error does.