[docs] [issue18334] type(name, bases, dict) does not call metaclass' __prepare__ attribute

R. David Murray report at bugs.python.org
Mon Jul 1 03:50:32 CEST 2013

R. David Murray added the comment:

"Intentional" is not perhaps the exactly right term, but it is working as expected.  There was a thread about this on python-dev ("PEP 3115 compliant dynamic type creation" and "adding types.build_class for 3.3"), that ultimately resulted in the addition of the 'new_class' function to the types module.  The documentation should probably just say that types doesn't handle metaclass __prepare__, and provide a link to the new_class function.

assignee:  -> docs at python
components: +Documentation -Interpreter Core
nosy: +docs at python, ncoghlan, r.david.murray
versions: +Python 3.4

Python tracker <report at bugs.python.org>

More information about the docs mailing list