[docs] [issue23674] super() documentation isn't very clear
Malcolm Smith
report at bugs.python.org
Fri Jul 14 13:53:05 EDT 2017
Malcolm Smith added the comment:
I agree that the first two paragraphs are confusing. It's clearly not true to say "The search order is same as that used by getattr() except that the type itself is skipped", because as noted above, everything *earlier* than the type in the MRO is also skipped. The second paragraph then goes on to imply that super() uses the MRO of its first argument, which contradicts the first paragraph, and apparently isn't true either.
Raymond explained the actual behavior quite clearly in his comment of 2015-03-15 21:34, and that's what the documentation should do as well.
----------
nosy: +Malcolm Smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23674>
_______________________________________
More information about the docs
mailing list