[Python-3000] Metaclasses in Py3K (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Dec 9 01:20:54 CET 2006
- Previous message: [Python-3000] Assignment decorators
- Next message: [Python-3000] Metaclasses in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Talin wrote:
In other words, the metaclass statement would have a side-effect of replacing the locals() dict with a mapping object supplied by the metaclass.
metaclass isn't a statement, it's just an attribute that is interpreted in a special way after the class namespace has been populated, by which time it's too late to do what you suggest.
-- Greg
- Previous message: [Python-3000] Assignment decorators
- Next message: [Python-3000] Metaclasses in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]