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 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), >> ``Py_None`` (static method) or a class object (instance or class >> method). > > Another open issue here: is the decorated class used, or the > undecorated class?
Sorry I've taken so long to get back to you about this - had email problems. 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. Tim Delaney _______________________________________________ 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/archive%40mail-archive.com