[Python-Dev] hash comments in interactive interpreter

Michael Hudson mwh at python.net
Fri May 21 11:11:46 EDT 2004


John Belmonte <john at neggie.net> writes:

> Hello,
>
> I'm wondering what the rationale is for hash comments yielding a
> continuation prompt (PS2) in the interactive interpreter.  I'd like to
> put such comments in interactive examples, but the output is hard to
> follow:
[...]
> Is there something preventing this anomaly in the interactive
> interpreter from being corrected?

Lack of time and effort?  The parser is fairly hairy.

Cheers,
mwh

-- 
40. There are two ways to write error-free programs; only the third
    one works.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html



More information about the Python-Dev mailing list