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/2009-May/089800.html below:

[Python-Dev] Indentation oddness...

[Python-Dev] Indentation oddness... [Python-Dev] Indentation oddness...Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 31 04:02:41 CEST 2009
Robert Kern wrote:

> The 'single' mode, which is used for the REPL, is a bit different than 
> 'exec', which is used for modules. This difference lets you insert 
> "blank" lines of whitespace into a function definition without exiting 
> the definition.

All that means is that the REPL needs to keep reading
lines until it gets a completely blank one. I don't
see why the compiler has to treat the source any
differently once the REPL has decided how much text
to feed it.

-- 
Greg
More information about the Python-Dev mailing list

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