We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc65426 commit 2a7fc79Copy full SHA for 2a7fc79
utils.py
@@ -289,7 +289,7 @@ def repr_Not(self):
289
290
291
def str_UnaryOp(self):
292
- return str(self.op) + ' ' + str(self.operand)
+ return str(self.op) + '(' + str(self.operand) + ')'
293
294
295
UnaryOp.__str__ = str_UnaryOp
@@ -766,9 +766,9 @@ class Begin(expr):
766
def __str__(self):
767
indent()
768
stmts = ''.join([str(s) for s in self.body])
769
- end = indent_stmt() + str(self.result)
+ end = indent_stmt() + + 'produce ' + str(self.result)
770
dedent()
771
- return 'begin:\n' + stmts + end
+ return '{\n' + stmts + end + '}'
772
773
774
@dataclass
0 commit comments