3 ms·
I mean you can just have the signal handler throw StopRequested in your Python boilerplate and never think about it again. One common pattern is raising Keyboa
by Spivak 2y ago
I mean you can just have the signal handler throw StopRequested in your Python boilerplate and never think about it again.
One common pattern is raising KeyboardInterrupt from your handler so it's all handled the same.