Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5820c6 commit b199b22Copy full SHA for b199b22
1 file changed
Doc/reference/datamodel.rst
@@ -1419,7 +1419,7 @@ Super Binding
1419
If ``a`` is an instance of :class:`super`, then the binding ``super(B,
1420
obj).m()`` searches ``obj.__class__.__mro__`` for the base class ``A``
1421
immediately preceding ``B`` and then invokes the descriptor with the call:
1422
- ``A.__dict__['m'].__get__(obj, A)``.
+ ``A.__dict__['m'].__get__(obj, obj.__class__)``.
1423
1424
For instance bindings, the precedence of descriptor invocation depends on the
1425
which descriptor methods are defined. A descriptor can define any combination
0 commit comments