>>> import collections >>> isinstance({}, collections.Hashable) False >>> isinstance(0, collections.Hashable) True