[Python-3000] PEP for Metaclasses in Python 3000
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Mar 10 23:51:04 CET 2007
Some more metaclass syntax ideas:
class Foo[Meta](bases):
...
Meta class Foo(bases):
...
although I don't like the way the latter moves the
'class' keyword away from the beginning.
Another thought: It's not strictly necessary to
allow for arguments to the metaclass, since the same
effect can be achieved with a factory function, like
we do for decorators.
--
Greg
More information about the Python-3000
mailing list