8000 [doc] Clarify MRO precedence in descriptor super binding section (GH-… · python/cpython@ee49484 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee49484

Browse files
[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.
1 parent 04e03f4 commit ee49484

File tree

Collapse file tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ Class Binding
18201820
Super Binding
18211821
If ``a`` is an instance of :class:`super`, then the binding ``super(B, obj).m()``
18221822
searches ``obj.__class__.__mro__`` for the base class ``A``
1823-
immediately preceding ``B`` and then invokes the descriptor with the call:
1823+
immediately following ``B`` and then invokes the descriptor with the call:
18241824
``A.__dict__['m'].__get__(obj, obj.__class__)``.
18251825

18261826
For instance bindings, the precedence of descriptor invocation depends on

0 commit comments

Comments
 (0)
0