Commit 29ad4e74 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'update-AssignmentCollection.__repr__' into 'master'

Update AssignmentCollection.__repr__

See merge request pycodegen/pystencils!110
parents 00c00c45 4751e6cb
......@@ -345,8 +345,7 @@ class AssignmentCollection:
return result
def __repr__(self):
return "Assignment Collection for " + ",".join([str(eq.lhs) for eq in self.main_assignments
if isinstance(eq, Assignment)])
return f"AssignmentCollection: {str(tuple(self.defined_symbols))[1:-1]} <- f{tuple(self.free_symbols)}"
def __str__(self):
result = "Subexpressions:\n"
......
Markdown is supported
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