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 rhettinger
Recipients congma, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
Date 2021-03-15.15:49:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615823397.8.0.285621613387.issue43475@roundup.psfhosted.org>
In-reply-to
Content
> And making float('nan') returning a singleton, 
> but 1e1000 * 0 returning different NaN would cause large confusion.

Not really, it would be just be an implementation detail, no different than int and strings being sometimes unique and sometimes not.  Historically, immutable objects are allowed to be reused when it is convenient for the implementation.

> What about Decimal NaN?

Decimal isn't used as much, so the need is less pressing, but we can do whatever is allowed by the spec.  Presumably, that would be easier than with floats because we control all possible ways to construct Decimals.
History
Date User Action Args
2021-03-15 15:49:57rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, congma
2021-03-15 15:49:57rhettingersetmessageid: <1615823397.8.0.285621613387.issue43475@roundup.psfhosted.org>
2021-03-15 15:49:57rhettingerlinkissue43475 messages
2021-03-15 15:49:57rhettingercreate