1. Armin Rigo
  2. cpython-withatomic


Guido van Rossum  committed c6a4a2c

Remove remark about NaN==NaN, I misunderstood that issue.

  • Participants
  • Parent commits a3d0299
  • Branches default

Comments (0)

Files changed (1)

File Doc/whatsnew/3.0.rst

View file
  • Ignore whitespace
   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*