Python needs better error reporting

kosh at kosh at
Sat Jun 29 03:48:48 CEST 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