A RetroSearch Logo

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

Search Query:

Showing content from http://www.python.org/pipermail/python-dev/2000-July/006237.html below:

[Python-Dev] SyntaxError patches

[Python-Dev] SyntaxError patchesJeremy Hylton jeremy@beopen.com
Wed, 12 Jul 2000 08:24:19 -0400 (EDT)
>>>>> "KPY" == Ka-Ping Yee <ping@lfw.org> writes:

  KPY> Gee.  Well, with the SyntaxError patch, at least the error
  KPY> message is much better (even though the arrow still points to
  KPY> the wrong place):

    >>> class foo:
    ...     def foo(self):
    ...         pass
    ...    def foo(bar):
      File "<stdin>", line 4
        def foo(bar):
                    ^
    SyntaxError: dedent does not match any outer indentation level

The error message is different and given a little phrasebook that
translates between the exception and English, it may actually be
better <0.3 wink>.

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):".

I think the error message is trying to say "indentation does not match
surrounding context," but other than "does not match" the words are
obscure. 

Jeremy



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