[Python-Dev] Pasting interpreter prompts
Ka-Ping Yee
ping@lfw.org
Tue, 18 Apr 2000 04:59:34 -0700 (PDT)
On Tue, 18 Apr 2000, Moshe Zadka wrote:
> > What was your point?
>
> That "... " in the beginning of the line is not a syntax error.
So? You can put "... " at the beginning of a line in a string, too:
>>> a = """
... ... spam spam"""
>>> a
'\012... spam spam'
That isn't a problem with the suggested mechanism, since dropdots
only comes into effect when the *first* line entered at a >>>
begins with ">>> " or "... ".
-- ?!ng
"Je n'aime pas les stupides garçons, même quand ils sont intelligents."
-- Roople Unia