[Python-3000] PEP for Metaclasses in Python 3000

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 11 06:20:53 CET 2007


Josiah Carlson wrote:

> I did have a post that was going to show that they were related, but
> then I remembered that because of __metaclass__ assignment semantics, it
> needs to necessarily have access to the class body dictionary at the
> point of assignment, so the compiler, etc., cannot be taught to extract
> everything.  Syntax is necessary to offer an ordered dictionary
> semantics.

I still think that extra arguments are unnecessary in
any case, because anything you could do by passing args
to the dict creation function could be done by using a
function instead of a class for the "metaclass".

Does anyone have a counter-example?

--
Greg


More information about the Python-3000 mailing list