[Python-Dev] SyntaxError patches

Ka-Ping Yee pingster@ilm.com
Wed, 12 Jul 2000 12:26:51 -0700 (PDT)

On Wed, 12 Jul 2000, Jeremy Hylton wrote:
>       File "<stdin>", line 4
>         def foo(bar):
>                     ^
>     SyntaxError: dedent does not match any outer indentation level
> I don't know what a dedent is.  Nor do I know what "outer indentation
> levels" are or how they might apply to the line "def foo(bar):".

Sorry, this is a transcript from my locally compiled Python.
The actual patch says "unindent" rather than "dedent".

(In this situation Python 1.5 prints a line to stderr saying
"inconsistent dedent" but the SyntaxError only says "invalid syntax".)

The intended meaning is "this line is less indented than the previous
one, but i can't determine what block it goes with because there's
no surrounding block indented at the same level".  In short form, this
became: "unindent does not match any outer indentation level".

-- ?!ng