def isKnownToBeHashable(self): # There are a few exceptions, where non-mutable can be non-hashable, e.g. slice. return isHashable(self.constant)
def isKnownToBeHashable(self): return isHashable(self.constant)