summaryrefslogtreecommitdiffstats
path: root/Doc/reference/datamodel.rst
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2021-11-20 16:55:35 (GMT)
committerGitHub <noreply@github.com>2021-11-20 16:55:35 (GMT)
commitee49484c0f0d0d79e8fc40835da10b78f89ae503 (patch)
tree6f64f1994001929fd5e3dd01b96b3e8c4dd7027d /Doc/reference/datamodel.rst
parent04e03f496cf7da48ce4f545b41579d7d45f59ad2 (diff)
downloadcpython-ee49484c0f0d0d79e8fc40835da10b78f89ae503.zip
cpython-ee49484c0f0d0d79e8fc40835da10b78f89ae503.tar.gz
cpython-ee49484c0f0d0d79e8fc40835da10b78f89ae503.tar.bz2
[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.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-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 b04c95f..b14b2cb 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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