[Python-3000] Metaclasses in Py3K (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Dec 9 08:15:21 CET 2006


At 08:53 AM 12/8/2006 -0600, Guido van Rossum wrote:

I've been thinking about this too, and I think it's reasonable to let the metaclass provide the dict to be used as locals. [snip] class C(B1, B2, metaclass=Foo):

If there's to be a special syntax for this, I don't think it should have the word "metaclass" in it -- it's too verbose and too jargony.

How about

class C(B1, B2) is M: ...

This is concise, keeps the metaclass clearly separated from the list of bases, and avoids creating any new keywords.

-- Greg



More information about the Python-3000 mailing list