Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f047164

Browse files
committed
Issue 10988: fix description of super's descriptor call.
2 parents 8e5e942 + b199b22 commit f047164

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ Super Binding
14181418
If ``a`` is an instance of :class:`super`, then the binding ``super(B,
14191419
obj).m()`` searches ``obj.__class__.__mro__`` for the base class ``A``
14201420
immediately preceding ``B`` and then invokes the descriptor with the call:
1421-
``A.__dict__['m'].__get__(obj, A)``.
1421+
``A.__dict__['m'].__get__(obj, obj.__class__)``.
14221422

14231423
For instance bindings, the precedence of descriptor invocation depends on the
14241424
which descriptor methods are defined. A descriptor can define any combination

0 commit comments

Comments
 (0)