summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-03-13 09:48:39 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-03-13 09:48:39 (GMT)
commitf673f0c40c663c96539950ecd11333715e621c57 (patch)
tree1564f29bff4d8850062ec6de00f37b6ec1124123 /Doc
parentad0ef571b70bac3764792aaeb1d966b553ecd256 (diff)
downloadcpython-f673f0c40c663c96539950ecd11333715e621c57.zip
cpython-f673f0c40c663c96539950ecd11333715e621c57.tar.gz
cpython-f673f0c40c663c96539950ecd11333715e621c57.tar.bz2
Issue #7845: Make 1j.__le__(2j) return NotImplemented rather than raising TypeError.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 4645c4e..f4f2ff6 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -168,8 +168,9 @@ Objects of different types, except different numeric types, never compare equal.
Furthermore, some types (for example, function objects) support only a degenerate
notion of comparison where any two objects of that type are unequal. The ``<``,
``<=``, ``>`` and ``>=`` operators will raise a :exc:`TypeError` exception when
-any operand is a complex number, the objects are of different types that cannot
-be compared, or other cases where there is no defined ordering.
+comparing a complex number with another built-in numeric type, when the objects
+are of different types that cannot be compared, or in other cases where there is
+no defined ordering.
.. index::
single: __eq__() (instance method)