]> granicus.if.org Git - python/commitdiff
fix description of super() behavior on descriptors
authorBenjamin Peterson <benjamin@python.org>
Fri, 18 Oct 2013 16:57:55 +0000 (12:57 -0400)
committerBenjamin Peterson <benjamin@python.org>
Fri, 18 Oct 2013 16:57:55 +0000 (12:57 -0400)
Doc/howto/descriptor.rst

index cc1b78d6357abba3e8e1cb102d05ecb82d7ae8b4..a0c698899b72abea03a360d30574bccff4f3ab4d 100644 (file)
@@ -119,7 +119,7 @@ The important points to remember are:
 The object returned by ``super()`` also has a custom :meth:`__getattribute__`
 method for invoking descriptors.  The call ``super(B, obj).m()`` searches
 ``obj.__class__.__mro__`` for the base class ``A`` immediately following ``B``
-and then returns ``A.__dict__['m'].__get__(obj, A)``.  If not a descriptor,
+and then returns ``A.__dict__['m'].__get__(obj, B)``.  If not a descriptor,
 ``m`` is returned unchanged.  If not in the dictionary, ``m`` reverts to a
 search using :meth:`object.__getattribute__`.