Python needs better error reporting

kosh at kosh at
Fri Jun 28 21:48:48 EDT 2002

On Fri, 28 Jun 2002, David LeBlanc wrote:

> "Syntax Error: invalid syntax" isn't very informative, yet it's tossed out
> frequently. HOW is the syntax invalid? For example:
> if s == ' '

That is supposed to start a new block so it should be
if s == ' ':

More information about the Python-list mailing list