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

Skip to content

Commit b199b22

Browse files
committed
Issue 10988: fix description of super's descriptor call.
1 parent e5820c6 commit b199b22

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
@@ -1419,7 +1419,7 @@ Super Binding
14191419
If ``a`` is an instance of :class:`super`, then the binding ``super(B,
14201420
obj).m()`` searches ``obj.__class__.__mro__`` for the base class ``A``
14211421
immediately preceding ``B`` and then invokes the descriptor with the call:
1422-
``A.__dict__['m'].__get__(obj, A)``.
1422+
``A.__dict__['m'].__get__(obj, obj.__class__)``.
14231423

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

0 commit comments

Comments
 (0)