Message415639
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? |
|
Date |
User |
Action |
Args |
2022-03-20 22:30:52 | slateny | set | recipients:
+ slateny, steven.daprano, docs@python, serhiy.storchaka, veky |
2022-03-20 22:30:52 | slateny | set | messageid: <1647815452.81.0.683809219337.issue47031@roundup.psfhosted.org> |
2022-03-20 22:30:52 | slateny | link | issue47031 messages |
2022-03-20 22:30:52 | slateny | create | |
|