Re: [Python-3000] PEP 3125 -- a modest proposal

2007-05-08 Thread Raymond Hettinger
[Andrew Koenig] > It has occurred to me that as Python stands today, an indent always begins > with a colon. So in principle, we could define anything that looks like an > indent but doesn't begin with a colon as a continuation. So the idea would > be that you can continue a statement onto as man

Re: [Python-3000] PEP 3125 -- a modest proposal

2007-05-08 Thread Ron Adam
Raymond Hettinger wrote: > [Andrew Koenig] >> It has occurred to me that as Python stands today, an indent always begins >> with a colon. So in principle, we could define anything that looks like an >> indent but doesn't begin with a colon as a continuation. So the idea would >> be that you can c

Re: [Python-3000] [Python-Dev] PEP 30XZ: Simplified Parsing

2007-05-08 Thread Nick Coghlan
Mark Hammond wrote: > Please add my -1 to the chorus here, for the same reasons already expressed. Another -1 here - while I agree there are benefits to removing backslash continuations and string literal concatenation, I don't think they're significant enough to justify the hassle of making it

Re: [Python-3000] PEP 3125 -- a modest proposal

2007-05-08 Thread Andrew Koenig
> Too dangerous. The most common Python syntax error (by far, even for > experienced users) is omission of a colon. If the missing colon starts > to have its own special meaning, that would not be a good thing. It's not special -- omitting it would have exactly the same effect as omitting a colo

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Jason Orendorff
On 5/7/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I don't know how this will work out yet. I'm not convinced that having > both mutable and immutable bytes is the right thing to do; but I'm > also not convinced of the opposite. I am slowly working on the > string/unicode unification, and so

Re: [Python-3000] [Python-Dev] PEP 30XZ: Simplified Parsing

2007-05-08 Thread Guido van Rossum
On 5/8/07, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Mark Hammond wrote: > > Please add my -1 to the chorus here, for the same reasons already expressed. > > Another -1 here - while I agree there are benefits to removing backslash > continuations and string literal concatenation, I don't think they

[Python-3000] Deadline for checking PEPs into subversion

2007-05-08 Thread Guido van Rossum
In fairness to would-be new PEP proposals for Python 3000, I am asking everyone who still has a draft PEP that's not checked in to subversion to please check in *a* version of it as soon as possible. This version doesn't have to be final; expect debate which may require a rewrite all or part of you

Re: [Python-3000] PEP 3125 -- a modest proposal

2007-05-08 Thread Alexandre Vassalotti
On 5/8/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > If you're in the mood to propose something radical, how about dropping > the colon altogether, leaving indention as the sure reliable cue and > cleaning-up the appearance of code in a new world where colons > are also being used for annotati

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Guido van Rossum
On 5/8/07, Jason Orendorff <[EMAIL PROTECTED]> wrote: > On 5/7/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > I don't know how this will work out yet. I'm not convinced that having > > both mutable and immutable bytes is the right thing to do; but I'm > > also not convinced of the opposite. I

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Jim Jewett
On 5/8/07, Jason Orendorff <[EMAIL PROTECTED]> wrote: > On 5/7/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > daunting to get rid of 8-bit strings even at the Python level let > > alone at the C level. > Guido, if 3.x had an immutable bytes type, could 2to3 provide a > better guarantee? Nam

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Luis P Caamano
On 5/7/07, "Guido van Rossum" wrote: > > > Around '99 Greg Stein and Mark Hammond tried to get rid of the GIL. > They removed most of the global mutable data structures, added > explicit locks to the remaining ones and to individual mutable > objects, and actually got the whole thing working. Unfor

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Paul Moore
On 08/05/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > I will be unhappy if 2to3 produces code that I can't run in (at least) > 2.6, because then I would need to convert more than once. IIUC, the idea is that you should be able to write valid Python 2.6 code which 2to3 can convert automatically. The

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Jim Jewett
On 5/8/07, Paul Moore <[EMAIL PROTECTED]> wrote: > On 08/05/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > I will be unhappy if 2to3 produces code that I can't run in > > (at least) 2.6, because then I would need to convert more > > than once. > IIUC, the idea is that you should be able to write va

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Guido van Rossum
On 5/8/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > I will be unhappy if 2to3 produces code that I can't run in (at least) > 2.6, because then I would need to convert more than once. This is the first time I hear of this requirement. It has not so far been a design goal for the conversions in 2to3.

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread James Y Knight
On May 8, 2007, at 9:16 AM, Jason Orendorff wrote: > Guido, if 3.x had an immutable bytes type, could 2to3 provide a > better guarantee? Namely, "Set your default encoding to None > in your 2.x code today, and 2to3 will not introduce bugs around > str/unicode." You cannot set the default encodi

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Guido van Rossum
On 5/8/07, Luis P Caamano <[EMAIL PROTECTED]> wrote: > On 5/7/07, "Guido van Rossum" wrote: > > Around '99 Greg Stein and Mark Hammond tried to get rid of the GIL. > > They removed most of the global mutable data structures, added > > explicit locks to the remaining ones and to individual mutable >

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Thomas Heller
Guido van Rossum schrieb: > On 5/8/07, Luis P Caamano <[EMAIL PROTECTED]> wrote: >> On 5/7/07, "Guido van Rossum" wrote: >> > Around '99 Greg Stein and Mark Hammond tried to get rid of the GIL. >> > They removed most of the global mutable data structures, added >> > explicit locks to the remaining

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Guido van Rossum
On 5/8/07, Thomas Heller <[EMAIL PROTECTED]> wrote: > Wouldn't multiple interpreters (assuming the problems with them would be > fixed) > in the same process give the same benefit? A separate GIL for each one? No; numerous read-only and immutable objects (e.g. the small integers, 1-character str

Re: [Python-3000] failing tests

2007-05-08 Thread Neal Norwitz
One more test is failing: test test_fileio failed -- Traceback (most recent call last): File "/tmp/python-test-3.0/local/lib/python3.0/test/test_fileio.py", line 128, in testAbles f = _fileio._FileIO("/dev/tty", "a") IOError: [Errno 6] No such device or address: '/dev/tty' This seems to only

Re: [Python-3000] failing tests

2007-05-08 Thread Guido van Rossum
Should be fixed now. Committed revision 55186. On 5/8/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > One more test is failing: > > test test_fileio failed -- Traceback (most recent call last): > File "/tmp/python-test-3.0/local/lib/python3.0/test/test_fileio.py", > line 128, in testAbles >f =

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Brett Cannon
On 5/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: On 5/8/07, Thomas Heller <[EMAIL PROTECTED]> wrote: > Wouldn't multiple interpreters (assuming the problems with them would be fixed) > in the same process give the same benefit? A separate GIL for each one? No; numerous read-only and immu

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Jim Jewett
On 5/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 5/8/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > I will be unhappy if 2to3 produces code that I can't run in (at least) > > 2.6, because then I would need to convert more than once. > This is the first time I hear of this requirement. It

Re: [Python-3000] [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))

2007-05-08 Thread Guido van Rossum
On 5/8/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > On 5/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 5/8/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > > I will be unhappy if 2to3 produces code that I can't run in (at least) > > > 2.6, because then I would need to convert more than once.

Re: [Python-3000] PEP 3129: Class Decorators

2007-05-08 Thread Jack Diederich
On Mon, May 07, 2007 at 11:12:40AM -0700, Guido van Rossum wrote: > On 5/7/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > Can I go ahead and mark PEP 3129 as "accepted"? > > Almost. I'm ok with it, but I think that to follow the procedure you > ought to post the full text at least once on python

Re: [Python-3000] PEP 3129: Class Decorators

2007-05-08 Thread Guido van Rossum
Cool! Looking forward to it. Collin or someone else can help you get it checked in if you don't have dev privs yet. Given the lack of discussion following the posting of the PEP, let's accept it. On 5/8/07, Jack Diederich <[EMAIL PROTECTED]> wrote: > On Mon, May 07, 2007 at 11:12:40AM -0700, Guid

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Martin v. Löwis
> Wouldn't multiple interpreters (assuming the problems with them would be > fixed) > in the same process give the same benefit? A separate GIL for each one? No. There is a global "current thread" variable that is protected by the GIL (namely, _PyThreadState_Current). Without that, you would not

Re: [Python-3000] PEP 3129: Class Decorators

2007-05-08 Thread Collin Winter
On 5/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Given the lack of discussion following the posting of the PEP, let's accept > it. Marked as accepted in r55190. Collin Winter > On 5/8/07, Jack Diederich <[EMAIL PROTECTED]> wrote: > > On Mon, May 07, 2007 at 11:12:40AM -0700, Guido van R

[Python-3000] ABC's, Roles, etc

2007-05-08 Thread Jeff Shell
Hello. I just joined the list as the whole Abstract Base Class, Interfaces, and Roles/Traits system is of significant interest to me. I've tried to catch up on the discussion by reading through the archives, but I'm sure I missed a few posts and I apologize if I'm wasting time covering ground that'

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Greg Ewing
Luis P Caamano wrote: > You gotta finish that sentence, it was a slow down on single CPU with > a speed increase with two or more CPUs, leveling out at 4 CPUs or so. But it's still going to slow down all code that doesn't use threads. I don't want to be *forced* to use threads to get decent speed

Re: [Python-3000] the future of the GIL

2007-05-08 Thread Jean-Paul Calderone
On Wed, 09 May 2007 12:46:14 +1200, Greg Ewing <[EMAIL PROTECTED]> wrote: >Luis P Caamano wrote: > >> You gotta finish that sentence, it was a slow down on single CPU with >> a speed increase with two or more CPUs, leveling out at 4 CPUs or so. > >But it's still going to slow down all code that >do

Re: [Python-3000] ABC's, Roles, etc

2007-05-08 Thread Phillip J. Eby
At 03:52 PM 5/8/2007 -0600, Jeff Shell wrote: >I have a lengthy post that dissects a major issue that I have with >ABCs and the Interface definition that I saw in PEP 3124:: it all >seems rigidly class and class-instance based. Hi Jeff; I read your post a few days ago, but your blog doesn't suppo

Re: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

2007-05-08 Thread Chris Monson
On 4/30/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: This is just the first draft (also checked into SVN), and doesn't include the details of how the extension API works (so that third-party interfaces and generic functions can interoperate using the same decorators, annotations, etc.). Commen

[Python-3000] Build is broken (r55196)

2007-05-08 Thread Collin Winter
As of r55196 (and possibly earlier), the p3yk branch does not make when configured with --with-pydebug. setup.py triggers this assertion failure: python: Objects/object.c:64: _Py_AddToAllObjects: Assertion `(op->_ob_prev == ((void *)0)) == (op->_ob_next == ((void *)0))' failed. Any ideas? ___

[Python-3000] Octal literals anecdote

2007-05-08 Thread Raymond Hettinger
Those following the octal literal discussion might enjoy reading one of today's SF bug reports: www.python.org/sf/1715302 Raymond ___ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe:

Re: [Python-3000] ABC's, Roles, etc

2007-05-08 Thread Jeff Shell
On 5/8/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 03:52 PM 5/8/2007 -0600, Jeff Shell wrote: > >I have a lengthy post that dissects a major issue that I have with > >ABCs and the Interface definition that I saw in PEP 3124:: it all > >seems rigidly class and class-instance based. > > Hi Jef

Re: [Python-3000] Build is broken (r55196)

2007-05-08 Thread Neal Norwitz
I had this problem. make clean solved it. -- n On 5/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > As of r55196 (and possibly earlier), the p3yk branch does not make > when configured with --with-pydebug. setup.py triggers this assertion > failure: > > python: Objects/object.c:64: _Py_AddToAllO

Re: [Python-3000] Build is broken (r55196)

2007-05-08 Thread Collin Winter
Works on a different laptop with a fresh checkout. False alarm, sorry. On 5/8/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > I had this problem. make clean solved it. -- n > > On 5/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > As of r55196 (and possibly earlier), the p3yk branch does not make