diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-22 15:28:45 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-22 15:28:45 -0700 |
commit | b76f6200d299acec082879ce6e87e7de46627d39 (patch) | |
tree | 17f43daa0be8762a638f2ea94989f047d2b03824 | |
parent | 4fbd88a078668a4094d398f60fcdf6c39adbbe6f (diff) | |
download | cpython-git-b76f6200d299acec082879ce6e87e7de46627d39.tar.gz |
Issue 10988: fix description of super's descriptor call.
-rw-r--r-- | Doc/reference/datamodel.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 41f6a77cf5..12dc4d8e3c 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1608,7 +1608,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 |