Print to the stdout when Python prints
@@ -6,8 +6,11 @@ from importlib.machinery import SourceFileLoader
__builtins__.input = __Pyto__.input
+oldStdout = sys.stdout
+
class Reader:
def write(self, txt):
+ oldStdout.write(txt)
__Pyto__.print(txt, end="")
reader = Reader()
