◐ Shell
clean mode source ↗

gh-137173: Allow signal handling in isolated subinterpreters by ZeroIntensity · Pull Request #137174 · python/cpython

added 9 commits

July 24, 2025 17:41
Also fix the existing test cases that were broken.

@ZeroIntensity

Catching signals while another interpreter has registered `signal`
module handlers still does not work, because we don't have a good way to
make the callbacks per-interpreter. We'd need something like PEP 788's
weak reference API to safely keep references to interpreters without
worrying about concurrent deallocation during signal handling.

@ZeroIntensity

@ZeroIntensity