3 ms·
Correct. Keys must be immutable and hashable.
by mivade 5y ago
Correct. Keys must be immutable and hashable.
- pdonis 5y agoTechnically keys only have to be hashable, but an object that is hashable but not immutable is not a good idea and in practice the two will go together.