[Python-3000] PEP for Metaclasses in Python 3000
Terry Reedy
tjreedy at udel.edu
Tue Mar 13 03:58:24 CET 2007
"Guido van Rossum" <guido at python.org> wrote in message
news:ca471dc20703121730r244f0314j38e8ffe9ebb5efcf at mail.gmail.com...
FWIW, I agree that class definition meta-information should go in the
header rather that the body. To me, metaclass=mymeta at the top is much
prettier than __metaclass__ = mymeta in the body. It will also make it
obvious to the reader immediately that something different is going to
happen. I always understood the module level assignment to be a temporary
kludge until the new class transition was completed.
tjr
More information about the Python-3000
mailing list