News for hackers. Stuff that matters.
Re:Python 3 Types in the Wild by mivade on Friday March 18, 2022 @10:46AM (#30722947)
Correct. Keys must be immutable and hashable.
Re:Python 3 Types in the Wild by pdonis on Friday March 18, 2022 @11:11AM (#30723307)
Technically 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.