Keyboard Interrupts with python’s multiprocessing Pool
How can I handle KeyboardInterrupt events with python’s multiprocessing Pools? Here is a simple example:
How can I handle KeyboardInterrupt events with python’s multiprocessing Pools? Here is a simple example:
Is there some way in Python to capture KeyboardInterrupt event without putting all the code inside a try–except statement?
I’m running this simple code:
My python try/except loop does not seem to trigger a keyboard interrupt when Ctrl + C is pressed while debugging my code in pycharm. My code look like this: