[issue42730] TypeError/hang inside of Time.Sleep() when _thread.interrupt_main()
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 it be more reasonable to make _thread.interrupt_main() always raise a SIGINT? I'm not sure if this is technically considered a bug or not, but it seems that it's not functioning as intended even in Python 3.7 -- ___ Python tracker <https://bugs.python.org/issue42730> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42730] TypeError/hang inside of Time.Sleep() when _thread.interrupt_main()
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 3.6 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue42730> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com