[Python-Dev] [Python-3000] PEP 367: New Super (original) (raw)

Phillip J. Eby pje at telecommunity.com
Mon May 14 18:58:51 CEST 2007


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 suggested that the class instance be held in a C-level variable on the function object which is bound to one of NULL (not part of a class), PyNone (static method) or a class object (instance or class method).

Another open issue here: is the decorated class used, or the undecorated class?



More information about the Python-Dev mailing list