[py3] Made Element instances hashable
This commit is contained in:
parent
b8e49d70f2
commit
e0988ecd1e
|
@ -83,6 +83,8 @@ class Element(object):
|
|||
return False
|
||||
return True
|
||||
|
||||
__hash__ = object.__hash__
|
||||
|
||||
def __ne__(self, element):
|
||||
return not self.__eq__(element)
|
||||
|
||||
|
|
Loading…
Reference in New Issue