Re: [Python-3000] [Python-3000-checkins] r54742 - in python/branches/p3yk/Lib: io.py test/test_io.py

2007-04-13 Thread Walter Dörwald
Guido van Rossum wrote: >> >> > I wonder if it would be possible to return the state as a pair >> >> > (unread, flags) where unread is a (byte) string of unprocessed bytes >> >> > and flags is some other state, with the constraint that in the >> initial >> >> > state the flags must be zero. Then I

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-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 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 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] Reminder: Py3k PEPs due by April

2007-04-13 Thread Travis Oliphant
Greg Ewing wrote: > Guido van Rossum wrote: > >>all PEPs for Py3k are due by April. > > > Can we nominate one of our 2.x PEPs for promotion > to a 3000 PEP? > > If so, I'd like to nominate PEP 335 - Overloadable > Boolean Operators. > That one would sure improve a lot of trouble we currently

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 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",