[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