Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-20 Thread Phillip J. Eby
At 06:20 PM 5/20/2007 +1000, Tim Delaney wrote: >Nick Coghlan wrote: > > Tim Delaney wrote: > >> So the question is, should the method store the class, or the name? > >> Looking up by name could pick up a totally unrelated class, but > >> storing the undecorated class could miss something important

Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-20 Thread Phillip J. Eby
At 04:25 PM 5/20/2007 +1000, Tim Delaney wrote: >I'm not sure what you're getting at here - are you referring to the >decorators for classes PEP? In that case, the decorator is applied >after the class is constructed, so it would be the undecorated class. > >Are class decorators going to update t

Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-20 Thread Tim Delaney
Nick Coghlan wrote: > Tim Delaney wrote: >> So the question is, should the method store the class, or the name? >> Looking up by name could pick up a totally unrelated class, but >> storing the undecorated class could miss something important in the >> decoration. > > Couldn't we provide a mechan

Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-20 Thread Nick Coghlan
Tim Delaney wrote: > So the question is, should the method store the class, or the name? Looking > up by name could pick up a totally unrelated class, but storing the > undecorated class could miss something important in the decoration. Couldn't we provide a mechanism whereby the cell can be adj

Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-19 Thread Tim Delaney
Tim Delaney wrote: > Phillip J. Eby wrote: >> At 05:23 PM 5/14/2007 +1000, Tim Delaney wrote: >>> Determining the class object to use >>> ''' >>> >>> The exact mechanism for associating the method with the defining >>> class is not >>> specified in this PEP, and shou

Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-19 Thread Tim Delaney
Phillip J. Eby wrote: > At 05:23 PM 5/14/2007 +1000, Tim Delaney wrote: >> Determining the class object to use >> ''' >> >> The exact mechanism for associating the method with the defining >> class is not >> specified in this PEP, and should be chosen for maximum per

Re: [Python-Dev] [Python-3000] PEP 367: New Super

2007-05-14 Thread Phillip J. Eby
At 05:23 PM 5/14/2007 +1000, Tim Delaney wrote: >Determining the class object to use >''' > >The exact mechanism for associating the method with the defining class is >not >specified in this PEP, and should be chosen for maximum performance. For >CPython, it is sugge