[issue40177] Python Language Reference Documentation

Steven D'Aprano report at bugs.python.org
Sat Apr 4 00:36:27 EDT 2020


Steven D'Aprano <steve+python at pearwood.info> 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 <report at bugs.python.org>
<https://bugs.python.org/issue40177>
_______________________________________


More information about the Python-bugs-list mailing list