2 ms·
The main problem is probably heterogenous collections. If you have a collection with both ints and strings then hashing will work fine but comparing will fail (
by duckerude 6y ago
The main problem is probably heterogenous collections. If you have a collection with both ints and strings then hashing will work fine but comparing will fail (in Python 3).
(Frozensets are hashable but not sortable but that's probably more niche.)