[Python-checkins] cpython (merge 3.3 -> default): merge 3.3
benjamin.peterson
python-checkins at python.org
Fri Oct 18 18:58:26 CEST 2013
http://hg.python.org/cpython/rev/ea4add053054
changeset: 86442:ea4add053054
parent: 86439:7172135d60f6
parent: 86440:247344a0d12e
user: Benjamin Peterson <benjamin at python.org>
date: Fri Oct 18 12:58:17 2013 -0400
summary:
merge 3.3
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
@@ -119,7 +119,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