[Python-Dev] new syntax for wrapping (PEP 318)

Phillip J. Eby pje at telecommunity.com
Thu Feb 19 19:19:34 EST 2004

At 06:48 PM 2/19/04 -0500, Jewett, Jim J wrote:

>I think this may be one reason this didn't happen before;
>wrapping is good, but it isn't entirely obvious how to
>write it or exactly what it should mean.  Given that, it
>might be premature to use up the [] syntax.

Well, I personally prefer the 'as' syntax for both class and function 

As for the semantics of class decorators, I would propose that they be 
identical to the semantics for function decorators.  I don't think there's 
a point to adding more ways to spell '__metaclass__'.  :)

More information about the Python-Dev mailing list