Open
Description
Bug report
Bug description:
This is related to #129614 but more straightforward and irrelevant to pdb. (pdb needs this to be fixed though)
Start REPL from a terminal and do
import signal
signal.signal(signal.SIGINT, lambda s, f: input("test"))
<Ctrl+C>
Your terminal is messed up and newline won't work anymore. (Not the Python repl which will exit due to some run time error, the terminal itself is messed up)
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
Python modules in the Lib dirPython modules in the Lib dirRelated to the interactive shellRelated to the interactive shellAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error