Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 815427c

Browse files
committed
Remove remark about NaN==NaN, I misunderstood that issue.
1 parent ab4c51c commit 815427c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/whatsnew/3.0.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ Python 3.0 has simplified the rules for ordering comparisons:
182182
no longer makes sense -- all the elements must be comparable to each
183183
other. Note that this does not apply to the ``==`` and ``!=``
184184
operators: objects of different incomparable types always compare
185-
unequal to each other, and an object always compares equal to itself
186-
(i.e., ``x is y`` implies ``x == y``; this is true even for *NaN*).
185+
unequal to each other.
187186

188187
* :meth:`builtin.sorted` and :meth:`list.sort` no longer accept the
189188
*cmp* argument providing a comparison function. Use the *key*

0 commit comments

Comments
 (0)