AR Kareem added the comment:
Shouldn't the behaviour for _thread.interrupt_main() be always to interrupt the
main thread.
I would expect that if a child thread uses _thread.interrupt_main() that the
main thread be interrupted regardless of how the python script was invoked.
Wouldn't
AR Kareem added the comment:
My apologies, I meant to flag it as 3.6 instead of 3.7.
I see what's happening now, and thanks for providing the correct way to raise a
KeyboardInterrupt.
Correctly flagged as 3.6 and closed.
Thanks.
--
resolution: -> duplicate
versions: +Python