Why aren’t Python sets hashable? January 20, 2023 by Tarik Generally, only immutable objects are hashable in Python. The immutable variant of set() — frozenset() — is hashable.