Merge "Make Functions unhashable"
This commit is contained in:
commit
6d6a2956c8
|
@ -123,8 +123,7 @@ class Function(object):
|
|||
return NotImplemented
|
||||
return not eq
|
||||
|
||||
def __hash__(self):
|
||||
return id(self)
|
||||
__hash__ = None
|
||||
|
||||
|
||||
def resolve(snippet):
|
||||
|
|
|
@ -87,7 +87,7 @@ class ResourceDefinitionCore(object):
|
|||
|
||||
if deletion_policy is not None:
|
||||
assert deletion_policy in self.DELETION_POLICIES
|
||||
self._hash ^= hash(deletion_policy)
|
||||
self._hash ^= _hash_data(deletion_policy)
|
||||
|
||||
if update_policy is not None:
|
||||
assert isinstance(update_policy, (collections.Mapping,
|
||||
|
|
Loading…
Reference in New Issue