When the code in C++ is executing and interrupt happens python sets a flag, waits for the code to finish and then handles the interrupts afterwards. Because of that, we might only check PyErr_CheckSignals() from within c++ code, but we won't bother with registering our own signal handlers.
When the code in C++ is executing and interrupt happens python sets a flag, waits for the code to finish and then handles the interrupts afterwards. Because of that, we might only check PyErr_CheckSignals() from within c++ code, but we won't bother with registering our own signal handlers.