Author rhettinger
Recipients congma, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
Date 2021-04-10.07:14:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618038882.89.0.154882927505.issue43475@roundup.psfhosted.org>
In-reply-to
Content
Mark, is there any reason hash(float('NaN')) and hash(Decimal('NaN')) have to be a constant?  Since NaNs don't compare equal, the hash homomorphism has no restrictions.  Why not have hash() return the id() like we do for instances of object?

I understand that sys.hash_info.nan would be invalidated, but that was likely useless anyway.
History
Date User Action Args
2021-04-10 07:14:42rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, congma
2021-04-10 07:14:42rhettingersetmessageid: <1618038882.89.0.154882927505.issue43475@roundup.psfhosted.org>
2021-04-10 07:14:42rhettingerlinkissue43475 messages
2021-04-10 07:14:42rhettingercreate