[Python-3000] Metaclasses in Py3K

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Dec 18 01:30:10 CET 2006

A point in favour of the current syntax and semantics
is that you can do things like

   class C:
     class __metaclass__(type):

or even, if you're feeling particularly devious,

   class C:
     def __metaclass__(name, bases, namespace):

An enhanced namespace dict would remain compatible
with both of these.


More information about the Python-3000 mailing list