mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-25777: Wording describes a lookup, not a call (GH-15573)
This commit is contained in:
parent
3aa48b88c7
commit
03acba6f1a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue