[Python-Dev] Updated: PEP 359: The make statement (original) (raw)
Gustavo Niemeyer gustavo at niemeyer.net
Tue Apr 18 23:22:45 CEST 2006
- Previous message: [Python-Dev] Updated: PEP 359: The make statement
- Next message: [Python-Dev] Why are contexts also managers? (was r45544 - peps/trunk/pep-0343.txt)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Updated: PEP 359: The make statement
- Next message: [Python-Dev] Why are contexts also managers? (was r45544 - peps/trunk/pep-0343.txt)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]