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/2003-May/035464.html below:

[Python-Dev] odd interpreter feature

[Python-Dev] odd interpreter feature [Python-Dev] odd interpreter featureSkip Montanaro skip@pobox.com
Wed, 7 May 2003 10:16:29 -0500
    Guido> And yes, it's a wart, but I don't know how to fix it.

I did a little digging and noticed this comment dating from v 2.5 (Jul 91):

    /* Lines with only whitespace and/or comments
       shouldn't affect the indentation and are
       not passed to the parser as NEWLINE tokens,
       except *totally* empty lines in interactive
       mode, which signal the end of a command group. */

Not surprisingly, given the age of the change, your fingerprints are all
over it. ;-)

I suspect if the code beneath that comment was executed only when the
indentation level is zero we'd be okay, but I don't know if the tokenizer
has that sort of information available.  I'll do a little more poking
around.

Skip




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