[Python-3000] Line continuation using ellipsis (original) (raw)
Fred L. Drake, Jr. fdrake at acm.org
Wed Apr 11 17:30:29 CEST 2007
- Previous message: [Python-3000] Line continuation using ellipsis
- Next message: [Python-3000] Line continuation using ellipsis
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-3000] Line continuation using ellipsis
- Next message: [Python-3000] Line continuation using ellipsis
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]