Martin Panter added the comment:

Agreed. The same problem is also present in the Python 3 documentation. (Beware 
there is another report somewhere about updating this how-to more generally for 
Python 3.)

Maybe we could be more explicit and start off “The attribute lookup super(B, 
obj).m searches . . .”

Also, I find the last sentence confusing: “If not in the dictionary, m reverts 
to a search using object.__getattribute__().” I guess it is describing how 
super(B, obj).__self__ accesses the internal attribute of the super object 
itself. Maybe it should say “If not in any base class, the lookup resorts to 
attributes of the super instance itself using object.__getattribute__().”

----------
stage:  -> needs patch
versions: +Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25777>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to