Comment by teaearlgraycold

Comment by teaearlgraycold 10 hours ago

0 replies

> but I'm disappointed in the depth of Knowledge python Devs have

Not super relevant, but my favorite fun fact about Python (specifically CPython) is that hash(x) where x is an int is always the value of the int - except for -1, because the underlying C function uses -1 to represent errors. So hash(-1) == -2, which means you have a hash collision right around 0 where hash(-1) == hash(-2)