diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-22 22:33:02 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-22 22:33:02 (GMT) |
commit | f047164f64f573621d2851087f6ddd1110c6bcff (patch) | |
tree | f219e9249cf9b984e130f913fdd0e7e59dbeda0f /Doc/reference | |
parent | 8e5e942c594aa29351cdc8ce5802159700cd2dc6 (diff) | |
parent | b199b2262cb37235447b9ab88e6479e227004d3c (diff) | |
download | cpython-f047164f64f573621d2851087f6ddd1110c6bcff.zip cpython-f047164f64f573621d2851087f6ddd1110c6bcff.tar.gz cpython-f047164f64f573621d2851087f6ddd1110c6bcff.tar.bz2 |
Issue 10988: fix description of super's descriptor call.
Diffstat (limited to 'Doc/reference')
-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 d3fb2c8..09ddaf5 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1418,7 +1418,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 |