mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539)
A similar sentence is present in the 'Invocation from super' section of the descriptor HOWTO, where it is already correct.
This commit is contained in:
parent
04e03f496c
commit
ee49484c0f
1 changed files with 1 additions and 1 deletions
|
@ -1820,7 +1820,7 @@ Class Binding
|
|||
Super Binding
|
||||
If ``a`` is an instance of :class:`super`, then the binding ``super(B, obj).m()``
|
||||
searches ``obj.__class__.__mro__`` for the base class ``A``
|
||||
immediately preceding ``B`` and then invokes the descriptor with the call:
|
||||
immediately following ``B`` and then invokes the descriptor with the call:
|
||||
``A.__dict__['m'].__get__(obj, obj.__class__)``.
|
||||
|
||||
For instance bindings, the precedence of descriptor invocation depends on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue