[Python-checkins] cpython (2.7): fix description of super() behavior on descriptors

benjamin.peterson python-checkins at python.org
Fri Oct 18 18:58:25 CEST 2013


http://hg.python.org/cpython/rev/d22c03988e58
changeset:   86441:d22c03988e58
branch:      2.7
parent:      86430:8a9f9cfc1d9d
user:        Benjamin Peterson <benjamin at python.org>
date:        Fri Oct 18 12:57:55 2013 -0400
summary:
  fix description of super() behavior on descriptors

files:
  Doc/howto/descriptor.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -124,7 +124,7 @@
 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__`.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list