[Python-3000] Line continuation using ellipsis (original) (raw)

Steven Bethard steven.bethard at gmail.com
Fri Apr 13 17:33:33 CEST 2007


On 4/13/07, Jim Jewett <jimjjewett at gmail.com> wrote:

On 4/13/07, Paul Svensson <paul-python at svensson.org> wrote: > Talin wrote: > > I've never liked using the backslash operator for line continuation

> Me neither, but the suggested replacements don't appeal to me either. > Is there any reason we can't just remove them ? > Is backslash continuation still needed anywhere,

>>> assert True, SyntaxError: invalid syntax _>>> assert True, _ "ASDF" >>>

Just like everywhere else, you can use parentheses:

assert True, ( ... 'ASDF')

STeVe

I'm not in-sane. Indeed, I am so far out of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy



More information about the Python-3000 mailing list