From 4b64d4b237b2bc5f8197e2232c84c0d1ed1a8fdb Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 04:15:16 -0300 Subject: A multi-line paste into Python's REPL runs whole, back at its prompt The Enter went on Python's first output after the paste, before it had taken in the whole paste, and one Enter leaves a multi-line input at ... anyway. Python's output now only restarts a 100 ms quiet wait (the 250 ms fallback stays), and a paste of more than one line gets the second Enter a block gets. fs.py runs print(11)\nprint(22), the same with a trailing newline, and a for block followed by a statement in a real python3, each back at >>>. Co-Authored-By: Claude Opus 5.5 --- test/fs.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/fs.py b/test/fs.py index b97c6967..09d366b5 100644 --- a/test/fs.py +++ b/test/fs.py @@ -524,6 +524,18 @@ def python_repl_runs_one_line(binary): record = b'MX0 0 0 %d %s\n' % (len(line), line) client.rpc(118, struct.pack('>>'), (code, body()[-200:]) finally: client.close(fid) -- cgit v1.3