Skip to content
Snippets Groups Projects
Commit 8a0623d7 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'make_assignment_collection_iterable' into 'master'

Make AssignmentCollection iteratable

See merge request software/pystencils!17
parents cd4c034b 31bbb00f
No related merge requests found
...@@ -332,6 +332,9 @@ class AssignmentCollection: ...@@ -332,6 +332,9 @@ class AssignmentCollection:
result += "\t{eq}\n".format(eq=eq) result += "\t{eq}\n".format(eq=eq)
return result return result
def __iter__(self):
return self.main_assignments.__iter__()
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