[Python-Dev] Adding types.build_class for 3.3 (original) (raw)

Barry Warsaw barry at python.org
Tue May 8 18:50:44 CEST 2012


On May 08, 2012, at 11:59 AM, Nick Coghlan wrote:

No, the "mcl" in the call is just the designated metaclass - the actual metaclass of the resulting class definition may be something different. That's why this is a separate method from mcl.new.

I'm not completely sold on adding a class method to type, but I acknowledge that it's a convenient place to put it. Still, it doesn't feel particularly more right than adding it to say, the operator module. I don't think we have any class methods on type yet, so this would be setting a precedence that we should be sure we want to establish.

Cheers, -Barry



More information about the Python-Dev mailing list