mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
(3.4) Issue22780: reword NotImplemented docs to emphasise should
This commit is contained in:
parent
e823933f9f
commit
b004943e9b
3 changed files with 26 additions and 4 deletions
|
|
@ -154,11 +154,16 @@ NotImplemented
|
|||
|
||||
This type has a single value. There is a single object with this value. This
|
||||
object is accessed through the built-in name ``NotImplemented``. Numeric methods
|
||||
and rich comparison methods may return this value if they do not implement the
|
||||
and rich comparison methods should return this value if they do not implement the
|
||||
operation for the operands provided. (The interpreter will then try the
|
||||
reflected operation, or some other fallback, depending on the operator.) Its
|
||||
truth value is true.
|
||||
|
||||
See
|
||||
:ref:`implementing-the-arithmetic-operations`
|
||||
for more details.
|
||||
|
||||
|
||||
Ellipsis
|
||||
.. index:: object: Ellipsis
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue