Re: [Python-3000] More PEP 3101 changes incoming

2007-08-01 Thread Talin
Ron Adam wrote: > Splits the item and it's formatter. The alignment is more of a > container property or feild property as you pointed out further down. > > So maybe if you group the related values together... > > {valuespec:format, alignment:width} > > This has a nice dictionary feel and

Re: [Python-3000] PEP 3115 chaining rules (was Re: pep 3124 plans)

2007-08-01 Thread Talin
Phillip J. Eby wrote: > At 07:40 PM 7/31/2007 +1000, Nick Coghlan wrote: >> Phillip J. Eby wrote: >>> In other words, a class' metaclass has to be a derivative of all >>> its bases' metaclasses; ISTM that a __prepare__ namespace needs to >>> be a derivative in some sense of all its bases' __prepa

Re: [Python-3000] More PEP 3101 changes incoming

2007-08-01 Thread Ron Adam
Talin wrote: > I had a long discussion with Guido today, where he pointed out numerous > flaws and inconsistencies in my PEP that I had overlooked. I won't go > into all of the details of what he found, but I'd like to focus on what > came out of the discussion. I'm going to be updating the PE

[Python-3000] More PEP 3101 changes incoming

2007-08-01 Thread Talin
I had a long discussion with Guido today, where he pointed out numerous flaws and inconsistencies in my PEP that I had overlooked. I won't go into all of the details of what he found, but I'd like to focus on what came out of the discussion. I'm going to be updating the PEP to incorporate the l

Re: [Python-3000] renaming suggestion

2007-08-01 Thread Greg Ewing
Fred Drake wrote: > Would you consider weakkeydict and weakvaluedict better than > WeakKeyDict and WeakValueDict? I like WeakKeyDict and WeakValDict because the existing names seem excessively long-winded, given that 'dict' or 'Dict' is a well-established abbreviation. But I actually think that

Re: [Python-3000] renaming suggestion

2007-08-01 Thread Fred Drake
On Aug 1, 2007, at 12:55 AM, hashcollision wrote: > I think that WeakKeyDictionary and should be renamed to WeakKeyDict > (same with WeakValueDictionary). This will make it consistent with > dict and collections.defaultdict. Hmm. I'm not opposed to providing new names for these classes if t