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

Implement __eq__ for AssignmentCollection

parent 681d7a7e
No related merge requests found
......@@ -385,6 +385,9 @@ class AssignmentCollection:
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:
"""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