Re: [Python-Dev] Problems with GeneratorExit deriving from Exception

2007-12-01 Thread Chad Austin
Guido van Rossum wrote: > On Dec 1, 2007 2:38 PM, Chad Austin <[EMAIL PROTECTED]> wrote: >> This problem could be solved in several ways: >> >> 1) Make GeneratorExit derive from BaseException, just like SystemExit. > > Well argued. I suggest to go for option (1) -- make GeneratorExit > inherit fro

Re: [Python-Dev] Non-string keys in namespace dicts

2007-12-01 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Dec 1, 2007 7:09 PM, Neil Toronto <[EMAIL PROTECTED]> wrote: | > Are there any use-cases for allowing namespace dicts (such as globals, | > builtins and classes) to have non-string keys? I'm asking because I'm | >

Re: [Python-Dev] Non-string keys in namespace dicts

2007-12-01 Thread Guido van Rossum
On Dec 1, 2007 7:09 PM, Neil Toronto <[EMAIL PROTECTED]> wrote: > Are there any use-cases for allowing namespace dicts (such as globals, > builtins and classes) to have non-string keys? I'm asking because I'm > planning on accelerating method lookups next, and the possibility of a > key compare cha

Re: [Python-Dev] Problems with GeneratorExit deriving from Exception

2007-12-01 Thread Guido van Rossum
On Dec 1, 2007 2:38 PM, Chad Austin <[EMAIL PROTECTED]> wrote: > Here at IMVU, we love Python 2.5's generators-as-coroutines. That feature has > let us succinctly express algorithms that intermix asynchronous network > requests > and UI operations without writing complicated state machines, and,

[Python-Dev] Non-string keys in namespace dicts

2007-12-01 Thread Neil Toronto
Are there any use-cases for allowing namespace dicts (such as globals, builtins and classes) to have non-string keys? I'm asking because I'm planning on accelerating method lookups next, and the possibility of a key compare changing the underlying dict could be a major pain. (It was a minor pai

[Python-Dev] Problems with GeneratorExit deriving from Exception

2007-12-01 Thread Chad Austin
Hello Python-Dev, Here at IMVU, we love Python 2.5's generators-as-coroutines. That feature has let us succinctly express algorithms that intermix asynchronous network requests and UI operations without writing complicated state machines, and, perhaps most importantly, get high-quality unit tests

Re: [Python-Dev] [poll] New name for __builtins__

2007-12-01 Thread Christian Heimes
Georg Brandl wrote: > Done, see #1535. I've written a 2to3 fixer, see #1535. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/a

Re: [Python-Dev] [poll] New name for __builtins__

2007-12-01 Thread Georg Brandl
Guido van Rossum schrieb: >> > On Nov 30, 2007, at 6:05 PM, Guido van Rossum wrote: >> >> It's almost as if nobody has seen my proposal to leave __builtins__ >> >> alone and rename the __builtin__ module instead. > >> Fred Drake wrote: >> > +1 for a module named "builtin", or something similarly o