[Python-Dev] Better SyntaxError messages

Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Wed, 5 Jul 2000 15:36:37 +0200 (CEST)

Michael Hudson wrote:
> [me] 
> > Here's another suggestion:
> > 
> > "expected indent" -> "missing expected indentation"
> +0 - doesn't really change much does it?

It's slightly more explicit.

> > "expected dedent" -> "missing expected closing indentation"
> Eugh.  How about "expected decrease in indentation"?  Though I think
> dedent (or mabye outdent) is pretty obvious in context.

I like your correction.
The problem is that "dedent" is very context-specific and it would be
better if this term is avoided for user-messages, because they generally
pop up out of context (i.e. when your head is in another context, so
the context switch is painful).

       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252