This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author slateny
Recipients docs@python, serhiy.storchaka, slateny, steven.daprano, veky
Date 2022-03-20.22:30:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647815452.81.0.683809219337.issue47031@roundup.psfhosted.org>
In-reply-to
Content
Vedran's got a good point, as existing documentation for math.nan already says

"... Equivalent to the output of float('nan')."

so it does seem a bit redundant to say both, though I wonder if we should still be explicit since

>>> import math
>>> math.nan is math.nan
True
>>> float('nan') is float('nan')
False

so they don't have the exact same behavior.

Serhiy also has a good point, so maybe instead say that Math.nan/float('nan') is *generally* not equal to any other value?
History
Date User Action Args
2022-03-20 22:30:52slatenysetrecipients: + slateny, steven.daprano, docs@python, serhiy.storchaka, veky
2022-03-20 22:30:52slatenysetmessageid: <1647815452.81.0.683809219337.issue47031@roundup.psfhosted.org>
2022-03-20 22:30:52slatenylinkissue47031 messages
2022-03-20 22:30:52slatenycreate