[issue1294232] Error in metaclass search order

Nick Coghlan report at bugs.python.org
Thu Apr 21 18:36:47 CEST 2011


Nick Coghlan <ncoghlan at gmail.com> added the comment:

As near as I can tell, the only visible behavioural change with Daniel's patch (updated as per my last comment) will be that the two error cases noted above (i.e. when an explicit metaclass or the first parent type's metaclass is not the most derived metaclass) will now correctly invoke the real metaclass immediately, instead of first traversing up the chain to type(), which then jumps all the way back down to the most derived metaclass.

The "new" special case is actually just a matter of preserving the current behaviour in the one situation where that is the right thing to do.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1294232>
_______________________________________


More information about the Python-bugs-list mailing list