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-04-11.05:27:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I'm loathe to guarantee anything about this in the language itself. 

There aren't language any guarantees being proposed.  Letting the hash depend on the object id just helps avoid quadratic behavior.  Making float('NaN') a singleton is also perfectly reasonable behavior for an immutable type.  Neither is a guaranteed behavior, just a convenient one.

> I'm not convinced it addresses a real-world problem

Maybe yes, maybe no.  I would hope that NaNs arising from bogus calculations would be rare.  OTOH, they are commonly used for missing values in Pandas where internal dict/set operations abound.  Either way, I would like to close off a trivially easy way to invoke quadratic behavior unexpectedly.
Date User Action Args
2021-04-11 05:27:17rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, congma
2021-04-11 05:27:17rhettingersetmessageid: <>
2021-04-11 05:27:17rhettingerlinkissue43475 messages
2021-04-11 05:27:17rhettingercreate