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

July 1, 2013
2:19 a.m.
Nikolaus Rath added the comment: In that cases, maybe type(name, cls, clsdict) should actually raise an error if there's a metaclass with __prepare__ involved? Presumably that would break only code that was already broken, but it would convert previously hidden behavioral bugs into an explicit expressions raised at the right point. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18334> _______________________________________
4255
Age (days ago)
4255
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolaus Rath