]> granicus.if.org Git - python/commitdiff
bpo-25777: Wording describes a lookup, not a call (GH-15573) (GH-15576)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Aug 2019 06:12:13 +0000 (23:12 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 29 Aug 2019 06:12:13 +0000 (23:12 -0700)
(cherry picked from commit 03acba6f1a851064ba1fa78965ece4354d499c04)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Doc/howto/descriptor.rst

index b29e590b20cba8c788b7173995f84ffbe096d740..9856e6caec09286421c91d4d82622a7ddce48c9d 100644 (file)
@@ -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