]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417)
authorPieter Eendebak <pieter.eendebak@gmail.com>
Thu, 5 Sep 2024 13:52:04 +0000 (15:52 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 13:52:04 +0000 (15:52 +0200)
Doc/library/functions.rst

index 2c55f2b508bac13fcbc6ed3194b3166b2252844f..b2b0086437f1db43020434f5fc67349fc63d1d36 100644 (file)
@@ -1965,10 +1965,10 @@ are always available.  They are listed here in alphabetical order.
    ``D -> B -> C -> A -> object`` and the value of *type* is ``B``,
    then :func:`super` searches ``C -> A -> object``.
 
-   The :attr:`~class.__mro__` attribute of the *object_or_type* lists the method
-   resolution search order used by both :func:`getattr` and :func:`super`.  The
-   attribute is dynamic and can change whenever the inheritance hierarchy is
-   updated.
+   The :attr:`~class.__mro__` attribute of the class corresponding to
+   *object_or_type* lists the method resolution search order used by both
+   :func:`getattr` and :func:`super`.  The attribute is dynamic and can change
+   whenever the inheritance hierarchy is updated.
 
    If the second argument is omitted, the super object returned is unbound.  If
    the second argument is an object, ``isinstance(obj, type)`` must be true.  If