A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006291.html below:

[Python-Dev] SyntaxError patches

[Python-Dev] SyntaxError patchesKa-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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4