I&#x27;ll explain the reason, BTW: a hash value of -1 isn&#x27;t valid in CPython because that integer is reserved as a flag value. So any hash method that returns -1 quietly gets its value changed to -2.