mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
Fix a typo in datamodel reference document (GH-24930)
(cherry picked from commit a1a5e3c4c8
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
This commit is contained in:
parent
d2e2534751
commit
ab99b6a8ba
1 changed files with 1 additions and 1 deletions
|
@ -1773,7 +1773,7 @@ Super Binding
|
||||||
immediately preceding ``B`` and then invokes the descriptor with the call:
|
immediately preceding ``B`` and then invokes the descriptor with the call:
|
||||||
``A.__dict__['m'].__get__(obj, obj.__class__)``.
|
``A.__dict__['m'].__get__(obj, obj.__class__)``.
|
||||||
|
|
||||||
For instance bindings, the precedence of descriptor invocation depends on the
|
For instance bindings, the precedence of descriptor invocation depends on
|
||||||
which descriptor methods are defined. A descriptor can define any combination
|
which descriptor methods are defined. A descriptor can define any combination
|
||||||
of :meth:`__get__`, :meth:`__set__` and :meth:`__delete__`. If it does not
|
of :meth:`__get__`, :meth:`__set__` and :meth:`__delete__`. If it does not
|
||||||
define :meth:`__get__`, then accessing the attribute will return the descriptor
|
define :meth:`__get__`, then accessing the attribute will return the descriptor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue