Skip to content

Commit 03acba6

Browse files
authored
bpo-25777: Wording describes a lookup, not a call (GH-15573)
1 parent 3aa48b8 commit 03acba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/descriptor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The important points to remember are:
117117
* non-data descriptors may be overridden by instance dictionaries.
118118

119119
The object returned by ``super()`` also has a custom :meth:`__getattribute__`
120-
method for invoking descriptors. The call ``super(B, obj).m()`` searches
120+
method for invoking descriptors. The attribute lookup ``super(B, obj).m`` searches
121121
``obj.__class__.__mro__`` for the base class ``A`` immediately following ``B``
122122
and then returns ``A.__dict__['m'].__get__(obj, B)``. If not a descriptor,
123123
``m`` is returned unchanged. If not in the dictionary, ``m`` reverts to a

0 commit comments

Comments
 (0)