[Python-3000] yes to class decorators

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Nov 17 03:53:41 CET 2006


tomer filiba wrote:

> we should also note that it's possible to replace "__metaclass__"
> by a @metaclass decorator.

I don't think so. Your proposed technique for that seems to
involve creating an ordinary class first, then taking it
apart and recreating it using the specified metaclass.
That smells very wrong to me.

--
Greg



More information about the Python-3000 mailing list