Skip to content
Snippets Groups Projects
Commit c3db2236 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Remove MultiAssignmentBase.__eq__

It does not do something fundamentally different than Record.__eq__
and its definition deletes the implementation of __hash__ in python3.
parent de8adddf
No related branches found
No related tags found
No related merge requests found
......@@ -407,19 +407,6 @@ class InstructionBase(ImmutableRecord):
# {{{ comparison, hashing
def __eq__(self, other):
if not type(self) == type(other):
return False
for field_name in self.fields:
if getattr(self, field_name) != getattr(other, field_name):
return False
return True
def __ne__(self, other):
return not self.__eq__(other)
def update_persistent_hash(self, key_hash, key_builder):
"""Custom hash computation function for use with
:class:`pytools.persistent_dict.PersistentDict`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment