Re: [Python-3000] Line continuation using ellipsis

2007-04-13 Thread Greg Ewing
Steven Bethard wrote: > Just like everywhere else, you can use parentheses: > assert True, ( > ... 'ASDF') Yes, but you have to put the opening paren in a somewhat awkward place to get it to work. Seems to me it would be much more intuitive to use what Haskell calls the "offside rule",

Re: [Python-3000] Line continuation using ellipsis

2007-04-13 Thread Ron Adam
Andrew Koenig wrote: >> I'm not proposing to remove the feature, however I'd like to see an >> alternative method for declaring statements that cross a line boundary. >> I seem to recall at one point someone suggesting the use of ellipsis, >> which makes a lot of sense to me: >> >> sorted_resul

Re: [Python-3000] Line continuation using ellipsis

2007-04-13 Thread Andrew Koenig
> I'm not proposing to remove the feature, however I'd like to see an > alternative method for declaring statements that cross a line boundary. > I seem to recall at one point someone suggesting the use of ellipsis, > which makes a lot of sense to me: > > sorted_result = partition_lower( input

Re: [Python-3000] Line continuation using ellipsis

2007-04-13 Thread Steven Bethard
On 4/13/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > On 4/13/07, Paul Svensson <[EMAIL PROTECTED]> 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

Re: [Python-3000] Line continuation using ellipsis

2007-04-13 Thread Jim Jewett
On 4/13/07, Paul Svensson <[EMAIL PROTECTED]> 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 ne

Re: [Python-3000] Line continuation using ellipsis

2007-04-13 Thread Paul Svensson
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, or does the grammar now allow for sufficient pa

Re: [Python-3000] Line continuation using ellipsis

2007-04-12 Thread Greg Ewing
Talin wrote: > I've never liked using the backslash operator for line continuation How about regarding a line as a continuation if it's indented more than the one which started the statement? > 1) It requires that it be the last character of a line, That requirement could be removed, couldn't i

Re: [Python-3000] Line continuation using ellipsis

2007-04-11 Thread Steven Bethard
On 4/11/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Talin schrieb: > > I'm not sure that I am the first to bring this up, but I might as well > > get it written down. > > > > I've never liked using the backslash operator for line continuation, for > > two reasons: > > > > 1) It requires that it b

Re: [Python-3000] Line continuation using ellipsis

2007-04-11 Thread Georg Brandl
Talin schrieb: > I'm not sure that I am the first to bring this up, but I might as well > get it written down. > > I've never liked using the backslash operator for line continuation, for > two reasons: > > 1) It requires that it be the last character of a line, meaning that you > have to insu

Re: [Python-3000] Line continuation using ellipsis

2007-04-11 Thread Fred L. Drake, Jr.
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". Re

[Python-3000] Line continuation using ellipsis

2007-04-11 Thread Talin
I'm not sure that I am the first to bring this up, but I might as well get it written down. I've never liked using the backslash operator for line continuation, for two reasons: 1) It requires that it be the last character of a line, meaning that you have to insure that there's no trailing whi