[py3] Made Element instances hashable

This commit is contained in:
Claude Paroz 2012-08-08 23:13:33 +02:00
parent b8e49d70f2
commit e0988ecd1e
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class Element(object):
return False return False
return True return True
__hash__ = object.__hash__
def __ne__(self, element): def __ne__(self, element):
return not self.__eq__(element) return not self.__eq__(element)