Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
In the old REPL, overriding SIGINT and pressing Ctrl-C works as expected:
❯ pythonPython 3.11.6 (main, Nov 3 2023, 17:05:41) [Clang 15.0.0 (clang-1500.0.40.1)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import signal>>> signal.signal(signal.SIGINT, lambda *x: print("NOOOO"))<built-in function default_int_handler>>>> NOOOONOOOObut in the new REPL it doesn't trigger the signal handler:
❯ ./python.exePython 3.14.0a0 (heads/more_offsets-dirty:9403c2cf58, Jun 6 2024, 12:10:11) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import signal>>> signal.signal(signal.SIGINT, lambda *x: print("NOOOO"))<built-in function default_int_handler>>>>KeyboardInterrupt>>>Linked PRs
- gh-120221: Deliver real singals on Ctrl-C and Ctrl-Z in the new REPL #120354
- [3.13] gh-120221: Deliver real singals on Ctrl-C and Ctrl-Z in the new REPL (GH-120354) #120368
- gh-120221: Support KeyboardInterrupt in asyncio REPL #123795
- [3.13] gh-120221: Support KeyboardInterrupt in asyncio REPL (GH-123795) #123799
Metadata
Metadata
Assignees
Labels
Projects
Status
Done