[docs] [issue23674] super() documentation isn't very clear

Raymond Hettinger report at bugs.python.org
Sun Mar 15 22:34:03 CET 2015


Raymond Hettinger added the comment:

> There's this mention 'The __mro__ attribute of the *type* lists
> the method resolution search order used by both getattr() and super().

I think instead of *type* it should say *object-or-type*.  It is the "second argument" that supplied the MRO.  The "first arguments" determines where we are currently in that MRO so that the search can begin upstream from the current class.

----------

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


More information about the docs mailing list