diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-12-11 00:01:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 00:01:16 (GMT) |
commit | 4b224e8729365c3f0b1901cc2217e9591719a332 (patch) | |
tree | 02c9ba2b7d8d093961b1c199b2b723bd29a720bc /Doc/reference | |
parent | 83fa1291fd0a25216a4a9e990f423682fda67cbe (diff) | |
download | cpython-4b224e8729365c3f0b1901cc2217e9591719a332.zip cpython-4b224e8729365c3f0b1901cc2217e9591719a332.tar.gz cpython-4b224e8729365c3f0b1901cc2217e9591719a332.tar.bz2 |
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539) (GH-29669)
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>
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 111417d..166c615 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1785,7 +1785,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 |