hash comments in interactive shell

Terry Reedy tjreedy at udel.edu
Thu May 20 15:32:38 EDT 2004


"John Belmonte" <john at neggie.net> wrote in message
news:40AD00B2.2020401 at neggie.net...
> Hello,
>
> I'd like to know what the rationale is for hash comments yielding a
> continuation prompt (PS2) in the Python shell.  I'd like to put such
> comments in interactive examples, but the output is hard to follow:
>
>    >>> a = 5
>    >>> # and now for some multiplication
>    ...
>    >>> a * 10
>    50

I believe I have seen this discussed either on clp or pydev.  As I
remember, it is a side-effect of way interactive interpreter works, not
intended, but apparently not as easy to change as it would seem.
Perhaps someone else remembers more.

TJR







More information about the Python-list mailing list