diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-10-18 16:57:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-10-18 16:57:55 (GMT) |
commit | 97b36181dbbdc16619421a9d5ce5e71a5084a36c (patch) | |
tree | 72cbf970515341ea014d0db043932a2b3ee3d4ba | |
parent | 2f4e7648b4dd188a2f0550f0b9297ce86db87148 (diff) | |
download | cpython-97b36181dbbdc16619421a9d5ce5e71a5084a36c.zip cpython-97b36181dbbdc16619421a9d5ce5e71a5084a36c.tar.gz cpython-97b36181dbbdc16619421a9d5ce5e71a5084a36c.tar.bz2 |
fix description of super() behavior on descriptors
-rw-r--r-- | Doc/howto/descriptor.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index f793562..7828188 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -124,7 +124,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__`. |