[Python-3000] Line continuation using ellipsis

Fred L. Drake, Jr. fdrake at acm.org
Wed Apr 11 17:30:29 CEST 2007


On Wednesday 11 April 2007 11:01, Talin wrote:
 > Parsing-wise, an ellipsis operator would have the following meaning:
 > Inside a parenthesized or bracketed expression, it would have the same
 > meaning it does now. Otherwise, it has the meaning "consume all
 > whitespace, including newlines".

Really?  What about this:

    -----------------------------------
    print "strings are cool", ...


    "really!"
    -----------------------------------

(Note that there are two blank lines between the two non-blank lines.)

Would this be a single print statement, or a print statement and an expression 
statement?


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>


More information about the Python-3000 mailing list