[Python-Dev] Updated: PEP 359: The make statement
Gustavo Niemeyer
gustavo at niemeyer.net
Tue Apr 18 23:22:45 CEST 2006
> Removing __metaclass__ in Python 3000
> -------------------------------------
>
> As a side-effect of its generality, the make-statement mostly
> eliminates the need for the ``__metaclass__`` attribute in class
> objects. Thus in Python 3000, instead of::
(...)
One of the reasons that this PEP was born is because metaclasses
are being used in ways that don't look natural to some, like
generating interface instances out of a class statement, so this
would add an interesting way to support these constructs.
That doesn't look like a good reason, though, to kill the metaclass
support that Python took so long to maturate. Otherwise, a new
optional extension could be included as well: "Removing the 'class'
statement".
--
Gustavo Niemeyer
http://niemeyer.net
More information about the Python-Dev
mailing list