summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-11 00:01:35 (GMT)
committerGitHub <noreply@github.com>2021-12-11 00:01:35 (GMT)
commit81a38293f2b2495bbb3b176c2912f5b6b5d3198d (patch)
tree22031f153cbaea36710a169f253d0fb29ae1a5ba
parentf8eebb0db720cd81fb736d9cbfd16faf2ec68b53 (diff)
downloadcpython-81a38293f2b2495bbb3b176c2912f5b6b5d3198d.zip
cpython-81a38293f2b2495bbb3b176c2912f5b6b5d3198d.tar.gz
cpython-81a38293f2b2495bbb3b176c2912f5b6b5d3198d.tar.bz2
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539) (GH-29670)
A similar sentence is present in the 'Invocation from super' section of the descriptor HOWTO, where it is already correct. (cherry picked from commit ee49484c0f0d0d79e8fc40835da10b78f89ae503) Co-authored-by: Jouke Witteveen <j.witteveen@gmail.com>
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 986a36c..a34ec45 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1776,7 +1776,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