[Python-3000] Metaclasses in Py3K (original) (raw)

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.

-- Greg



More information about the Python-3000 mailing list