logoalt Hacker News

Jaxantoday at 8:31 PM1 replyview on HN

The hash is the same. But a hash set has to use == in case of equal hashes (to avoid collisions).


Replies

kubbtoday at 8:32 PM

It's not always the same:

  >>> hash(float('nan'))
  271103401
  >>> hash(float('nan'))
  271103657
show 2 replies