Skip to content

Commit

Permalink
Flush stdout at end of execution (#61).
Browse files Browse the repository at this point in the history
  • Loading branch information
dloscutoff committed Mar 15, 2024
1 parent 0f7eaca commit 8d1eb56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def executeProgram(self, statements, args=None):
# arguments and the return value PRINTed after execution
returnVal = self.functionCall(self.mainFunction, self.args)
self.PRINT(returnVal)
sys.stdout.flush()

def executeStatement(self, statement):
if isinstance(statement, list):
Expand Down

0 comments on commit 8d1eb56

Please sign in to comment.