[issue47031] math.nan should note that NANs do not compare equal to anything

Vedran Čačić report at bugs.python.org
Sat Mar 19 02:02:11 EDT 2022


Vedran Čačić <vedgar at gmail.com> added the comment:

I'm not satisfied with "and" formulation. For all practical purposes, math.nan is the "same" object as float('nan'), they just represent two ways of referring to it (or constructing it). To me it sounds a bit like "2 and 1+1 are the only even prime numbers." I suggest the docs only speak of math.nan here, and elsewhere to say that they can also be constructed by float('nan').

----------
nosy: +veky

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47031>
_______________________________________


More information about the Python-bugs-list mailing list