Message255797
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__().” |
|
Date |
User |
Action |
Args |
2015-12-03 00:15:37 | martin.panter | set | recipients:
+ martin.panter, docs@python, Juchen Zeng |
2015-12-03 00:15:37 | martin.panter | set | messageid: <1449101737.29.0.99379430675.issue25777@psf.upfronthosting.co.za> |
2015-12-03 00:15:37 | martin.panter | link | issue25777 messages |
2015-12-03 00:15:37 | martin.panter | create | |
|