Skip to content
Snippets Groups Projects
Commit d0dfb8bd authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Implement __eq__ for AssignmentCollection

parent 681d7a7e
Branches
Tags
No related merge requests found
...@@ -385,6 +385,9 @@ class AssignmentCollection: ...@@ -385,6 +385,9 @@ class AssignmentCollection:
subexpressions=[a.replace(*args, **kwargs) for a in self.subexpressions] subexpressions=[a.replace(*args, **kwargs) for a in self.subexpressions]
) )
def __eq__(self, other):
return set(self.all_assignments) == set(other.all_assignments)
class SymbolGen: class SymbolGen:
"""Default symbol generator producing number symbols ζ_0, ζ_1, ...""" """Default symbol generator producing number symbols ζ_0, ζ_1, ..."""
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment