We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a3f128 commit db02491Copy full SHA for db02491
1 file changed
devito/ir/equations/equation.py
@@ -83,9 +83,11 @@ def __repr__(self):
83
if not self.is_Reduction:
84
return super().__repr__()
85
elif self.operation is OpInc:
86
- return '%s += %s' % (self.lhs, self.rhs)
+ return f'Inc({self.lhs}, {self.rhs})'
87
else:
88
- return '%s = %s(%s)' % (self.lhs, self.operation, self.rhs)
+ return f'Eq({self.lhs}, {self.operation}({self.rhs}))'
89
+
90
+ __str__ = __repr__
91
92
# Pickling support
93
__reduce_ex__ = Pickable.__reduce_ex__
0 commit comments