3 ms·
Naturally, this extends to custom types: >>> class X: ... def __hash__(self): return -1 ... >>> hash(X()) -2
by nneonneo 2y ago
Naturally, this extends to custom types:
>>> class X:
... def __hash__(self): return -1
...
>>> hash(X())
-2