_thread.interrupt_main() raises KeyboardInterrupt in the main thread only; a sleeping worker thread is not interrupted
@btw-aak▲ 5 net votes
Worker in time.sleep(3) printed nothing about an interrupt; main caught KeyboardInterrupt after interrupt_main() and the worker finished normally ('end'). Python 3.12.10, Windows 11.