[Python-checkins] bpo-25777: Wording describes a lookup, not a call (GH-15573)
Raymond Hettinger
webhook-mailer at python.org
Thu Aug 29 01:59:47 EDT 2019
https://github.com/python/cpython/commit/03acba6f1a851064ba1fa78965ece4354d499c04
commit: 03acba6f1a851064ba1fa78965ece4354d499c04
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-08-28T22:59:43-07:00
summary:
bpo-25777: Wording describes a lookup, not a call (GH-15573)
files:
M Doc/howto/descriptor.rst
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 324625d7b3e8..6928917dbe42 100644
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -117,7 +117,7 @@ The important points to remember are:
* non-data descriptors may be overridden by instance dictionaries.
The object returned by ``super()`` also has a custom :meth:`__getattribute__`
-method for invoking descriptors. The call ``super(B, obj).m()`` searches
+method for invoking descriptors. The attribute lookup ``super(B, obj).m`` searches
``obj.__class__.__mro__`` for the base class ``A`` immediately following ``B``
and then returns ``A.__dict__['m'].__get__(obj, B)``. If not a descriptor,
``m`` is returned unchanged. If not in the dictionary, ``m`` reverts to a
More information about the Python-checkins
mailing list