Steven D'Aprano <[email protected]> added the comment:
How about this?
"The not-a-number values ``float('NaN')`` and ``decimal.Decimal('NaN')`` are
special. Not-a-number values always compare unordered and unequal to any other
value, including themselves. For example, if ``x = float('NaN')``, then ``x ==
x``, ``3 < x``, and ``x < 3`` are all false, but ``x != x`` is true. This
behavior is compliant with the IEEE 754 standard."
Due to technology problems at my end, I cannot submit a PR for this, but this
should be an easy issue. If somebody wants to use the text above as a start,
please feel free to do so.
----------
nosy: +steven.daprano
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40177>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com