[Python-checkins] [doc] Clarify MRO precedence in descriptor super binding section (GH-29539)

ambv webhook-mailer at python.org
Sat Nov 20 11:55:44 EST 2021


https://github.com/python/cpython/commit/ee49484c0f0d0d79e8fc40835da10b78f89ae503
commit: ee49484c0f0d0d79e8fc40835da10b78f89ae503
branch: main
author: Jouke Witteveen <j.witteveen at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-11-20T17:55:35+01:00
summary:

[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.

files:
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index b04c95f7779b4..b14b2cb1ef5e4 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



More information about the Python-checkins mailing list