[docs] [issue37176] super() docs don't say what super() does
Steven D'Aprano
report at bugs.python.org
Fri Jun 7 19:45:38 EDT 2019
Steven D'Aprano <steve+python at pearwood.info> added the comment:
> I'm sorry to say that you're wrong here.
I'm happy to be corrected.
It is fair to say I failed to take the multiple inheritance case into
account. Clearly super can't *only* look at the MRO of the first object
since that will miss the multiple inheritance case, as you point out.
Thank you.
But neither can it *only* look at the MRO of the second class, because
that would restart the search at the top of the hierarchy; also if
type(second argument) was the only thing that mattered, that would make
the first argument redundant and pointless.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37176>
_______________________________________
More information about the docs
mailing list