(3.4) Issue22780: reword NotImplemented docs to emphasise should

This commit is contained in:
Ethan Furman 2014-11-26 21:15:35 -08:00
parent e823933f9f
commit b004943e9b
3 changed files with 26 additions and 4 deletions

View file

@ -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