[Python-Dev] odd interpreter feature

Michael Hudson mwh@python.net
Wed, 07 May 2003 15:37:37 +0100


Skip Montanaro <skip@pobox.com> writes:

> I was editing the tutorial just now and noticed the secondary prompt (...)
> in a situation where I didn't think it was appropriate:
>
>     >>> # The argument of repr() may be any Python object:
>     ... repr(x, y, ('spam', 'eggs'))
>     "(32.5, 40000, ('spam', 'eggs'))"
>
> It's caused by the trailing colon at the end of the comment.

Python 2.3b1+ (#1, May  6 2003, 18:00:11) 
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> # no it's not
... 

Cheers,
M.

-- 
  The Internet is full.  Go away.
                      -- http://www.disobey.com/devilshat/ds011101.htm