[Python-3000] Metaclass Vs Class Decorator
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue May 20 04:10:33 CEST 2008
paul bedaride wrote:
> it's why I wonder, if this can't be good if metaclass and class
> decorator have the same
> interface, then we can use a class as a metaclass or as a decorator ??
That doesn't make sense -- metaclasses and class decorators
are very different things and have very different capabilities.
There is some overlap between the things they can do, but
trying to unify them would be a mistake.
--
Greg
More information about the Python-3000
mailing list