PEP 318 (was Re: [Python-Dev] Re: Guido's Magic Code was: inlinesort option)

Phillip J. Eby pje at
Tue Nov 4 11:35:49 EST 2003

At 11:30 AM 11/4/03 -0500, Phillip J. Eby wrote:
>'addClassAdvisor(decorator_callable)' which adds a decorator function (in 
>a PEP 218-style execution order) to those that will be called on the 
>resulting class.
>IOW, we created a decorator mechanism for classes that is almost identical 
>to the PEP 218 mechanism for functions, to make it easy to call functions 
>on a created class, using declarations that occur near the class 
>statement.  This was specifically to make it easier to do simple 
>decorator-like things, without writing metaclasses, and thus not 
>interfering with user-supplied metaclasses.

Oops.  I meant PEP 318, obviously.

More information about the Python-Dev mailing list