A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-April/003629.html below:

[Python-Dev] Pasting interpreter prompts

[Python-Dev] Pasting interpreter prompts [Python-Dev] Pasting interpreter promptsKa-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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4