bpo-43356: Allow passing a signal number to interrupt_main() by pitrou · Pull Request #24755 · python/cpython (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to add a function to the stable ABI, you must run "make regen-limited-abi" and add it to PC/python3dll.c.

And I don't think it places a burden.

Other Python implementations must implement it, it's a maintenance burden for them. _thread.interrupt_main(signum) can be called in C.

If you don't need the function, I would even suggest to remove it (make it internal/private).