Skip to content

Commit 910a665

Browse files
committed
fix description of super() behavior on descriptors
1 parent 90b41f0 commit 910a665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/descriptor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The important points to remember are:
119119
The object returned by ``super()`` also has a custom :meth:`__getattribute__`
120120
method for invoking descriptors. The call ``super(B, obj).m()`` searches
121121
``obj.__class__.__mro__`` for the base class ``A`` immediately following ``B``
122-
and then returns ``A.__dict__['m'].__get__(obj, A)``. If not a descriptor,
122+
and then returns ``A.__dict__['m'].__get__(obj, B)``. If not a descriptor,
123123
``m`` is returned unchanged. If not in the dictionary, ``m`` reverts to a
124124
search using :meth:`object.__getattribute__`.
125125

0 commit comments

Comments
 (0)