Closed
Description
Bug report
Bug description:
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.
Here's an animation showing the issue:
This issue is also reproducible on the main
branch.
I checked out commit 32a0fab and I could not reproduce this, so the issue arose sometime after #120253 was merged.
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux