Why aren’t Python sets hashable?

Generally, only immutable objects are hashable in Python. The immutable variant of set()frozenset() — is hashable.

Leave a Comment