]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539)
authorJouke Witteveen <j.witteveen@gmail.com>
Sat, 20 Nov 2021 16:55:35 +0000 (17:55 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Nov 2021 16:55:35 +0000 (17:55 +0100)
A similar sentence is present in the 'Invocation from super' section of
the descriptor HOWTO, where it is already correct.

Doc/reference/datamodel.rst

index b04c95f7779b4d51e009ace92b7a61caee8e1b59..b14b2cb1ef5e4d309a7128ac51af6060f90cd4f4 100644 (file)
@@ -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