Why is user-defined object hashable but not list?

37 Views Asked by At

I understand why tuple is hashable but list is not. But if python makes user-defined objects hashable by default using their ID, why can't they do the same for list?

0

There are 0 best solutions below