[Python-Dev] Adding types.build_class for 3.3
Hrvoje Niksic
hrvoje.niksic at avl.com
Mon May 7 15:42:11 CEST 2012
More information about the Python-Dev mailing list
Mon May 7 15:42:11 CEST 2012
- Previous message: [Python-Dev] Adding types.build_class for 3.3
- Next message: [Python-Dev] Adding types.build_class for 3.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/07/2012 02:15 PM, Nick Coghlan wrote: > Benjamin's suggestion of a class method on type may be a good one, > though. Then the invocation (using all arguments) would be: > > mcl.build_class(name, bases, keywords, exec_body) > > Works for me, so unless someone else can see a problem I've missed, > we'll go with that. Note that to call mcl.build_class, you have to find a metaclass that works for bases, which is the job of build_class. Putting it as a function in the operator module seems like a better solution.
- Previous message: [Python-Dev] Adding types.build_class for 3.3
- Next message: [Python-Dev] Adding types.build_class for 3.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list