[Python-Dev] [Python-3000] PEP 367: New Super
Phillip J. Eby
pje at telecommunity.com
Mon May 21 02:07:42 CEST 2007
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 the MRO? I see nothing about
>that in PEP 3129, so using the undecorated class would match the
>current super(cls, self) behaviour.
Class decorators can (and sometimes *do*, in PEAK) return an object
that's not the original class object. So that would break super,
which is why my inclination is to go with using the decorated result.
More information about the Python-Dev