[Python-Dev] Class decorators

Guido van Rossum guido at python.org
Tue Mar 28 20:01:44 CEST 2006

On 3/28/06, Samuele Pedroni <pedronis at strakt.com> wrote:
> Mike Krell wrote:
> >Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes:
> >>I've just been playing around with metaclasses, and
> >>I think I've stumbled across a reason for having
> >>class decorators as an alternative to metaclasses
> >>for some purposes.
> >
> >There has also been discussion on the IronPython mailing list that class
> >decorators would be a very useful syntax for expressing .NET attributes.
> >
> >http://lists.ironpython.com/pipermail/users-ironpython.com/2006-March/002007.html

> the same is true for Jython and Java annotations.

OK, I'm convinced (mostly by the awful hackery that Phillip so proudly
exposed :-).

I propose that someone start writing a Py3k PEP for class decorators.
I don't  think it's fair to the 2.5 release team to want to push this
into 2.5 though; how about 2.6?

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list