[Python-3000] Metaclasses in Py3K
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Dec 9 01:20:54 CET 2006
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
More information about the Python-3000
mailing list