On Mon, Dec 21, 2020 at 7:15 PM Paul Bryan firstname.lastname@example.org wrote:
Hmm, I see ints, floats and decimal.Decimal all produce the same hashes for integer values, so they also suffer the same fate in sets and dicts.
Yes, because they compare equal. (The hash is secondary to that.) Since 1 == 1.0, they must be coalesced in a set.