[Python-3000] Metaclasses in Py3K (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Dec 18 01:30:10 CET 2006
- Previous message: [Python-3000] Metaclasses in Py3K
- Next message: [Python-3000] Metaclasses in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Metaclasses in Py3K
- Next message: [Python-3000] Metaclasses in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]