summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-03-22 22:28:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-03-22 22:28:45 (GMT)
commitb199b2262cb37235447b9ab88e6479e227004d3c (patch)
tree92faa6e087688e13528b3a5730e0e9857b3ae3bd /Doc
parente5820c6b5dcaa284835f86c95f4455082b842b63 (diff)
downloadcpython-b199b2262cb37235447b9ab88e6479e227004d3c.zip
cpython-b199b2262cb37235447b9ab88e6479e227004d3c.tar.gz
cpython-b199b2262cb37235447b9ab88e6479e227004d3c.tar.bz2
Issue 10988: fix description of super's descriptor call.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index dca01de..25274ca 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1419,7 +1419,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