Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
krab
5 days ago
|
parent
|
context
|
favorite
| on:
Why is hash(-1) == hash(-2) in Python?
Because -1 is not equal to -2. They will fall into the same bucket of the hash map, but the hash collisions are expected and must be accounted for.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: