]> granicus.if.org Git - python/commitdiff
Remove remark about NaN==NaN, I misunderstood that issue.
authorGuido van Rossum <guido@python.org>
Wed, 3 Dec 2008 15:24:50 +0000 (15:24 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Dec 2008 15:24:50 +0000 (15:24 +0000)
Doc/whatsnew/3.0.rst

index a2afb32ffe43ca644b82ea07d1447038d1c4e9ac..169c87617f07cd7c8634fa97054a5592bdb5f992 100644 (file)
@@ -182,8 +182,7 @@ Python 3.0 has simplified the rules for ordering comparisons:
   no longer makes sense -- all the elements must be comparable to each
   other.  Note that this does not apply to the ``==`` and ``!=``
   operators: objects of different incomparable types always compare
-  unequal to each other, and an object always compares equal to itself
-  (i.e., ``x is y`` implies ``x == y``; this is true even for *NaN*).
+  unequal to each other.
 
 * :meth:`builtin.sorted` and :meth:`list.sort` no longer accept the
   *cmp* argument providing a comparison function.  Use the *key*