You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KeyboardInterrupt during paste breaks the new REPL #121295
To reproduce, type f = """ then paste a giant block of text (I pasted the text of Frankenstein) then press Ctrl+C immediately (while the text is being pasted).
>>> f ="""
<GIANT BLOCK OF TEXT>
Then hit Ctrl+C
After this the REPL will enter a state where it seems unable to end a block of code. The prompt changes to ... and only Ctrl+C will quit out of the block.
Also nothing is displayed while typing until Enter is pressed.
Activity
pygeek commentedon Jul 3, 2024
Which linux distro and version are you using? I was unable to reproduce on macOS 14.5 so the issue may be Linux specific.
treyhunner commentedon Jul 3, 2024
I am running on Ubuntu Linux 22.04.4. I was able to reproduce the problem in both Gnome Terminal and in XTerm on my machine.
mgmacias95 commentedon Jul 13, 2024
I am working on this :)
gh-121295: Fix blocked console after interrupting a long paste (GH-12…
pythongh-121295: Fix blocked console after interrupting a long paste (p…
[3.13] gh-121295: Fix blocked console after interrupting a long paste (…
ambv commentedon Jul 16, 2024
Thanks for the fix, Marta! ⚡️⚡️⚡️
pythongh-121295: Fix blocked console after interrupting a long paste (p…