catch keyboard interrupts during Python execution
Open
enhancement
- Dominant language
- Julia
- Stars
- 1.5k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Currently, keyboard interrupts are deferred during execution of Python code, since CPython is not interrupt-safe. It would be nice to catch these interrupts and set a `KeyboardInterrupt` Python exception so that Python code is halted gracefully.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file, test, or entry point is named in the issue. Start by locating how PyCall executes Python code and currently handles keyboard interrupts, then review the CPython interrupt-safety constraints. Done means an interrupt sets a KeyboardInterrupt exception and halts Python execution gracefully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100