]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 10988: fix description of super's descriptor call.
authorRaymond Hettinger <python@rcn.com>
Tue, 22 Mar 2011 22:28:45 +0000 (15:28 -0700)
committerRaymond Hettinger <python@rcn.com>
Tue, 22 Mar 2011 22:28:45 +0000 (15:28 -0700)
Doc/reference/datamodel.rst

index dca01dea9d3015fe3bedb1cf9ae412e4df4d16e2..25274caf6648615e99e028c4d59f68ee790465ae 100644 (file)
@@ -1419,7 +1419,7 @@ Super Binding
    If ``a`` is an instance of :class:`super`, then the binding ``super(B,
    obj).m()`` searches ``obj.__class__.__mro__`` for the base class ``A``
    immediately preceding ``B`` and then invokes the descriptor with the call:
-   ``A.__dict__['m'].__get__(obj, A)``.
+   ``A.__dict__['m'].__get__(obj, obj.__class__)``.
 
 For instance bindings, the precedence of descriptor invocation depends on the
 which descriptor methods are defined.  A descriptor can define any combination