2 /* Sigcheck is similar to intrcheck() but sets an exception when an
3 interrupt occurs. It can't be in the intrcheck.c file since that
4 file (and the whole directory it is in) doesn't know about objects
5 or exceptions. It can't be in errors.c because it can be
6 overridden (at link time) by a more powerful version implemented in
13 PyErr_CheckSignals(void)
15 if (!PyOS_InterruptOccurred())
17 PyErr_SetNone(PyExc_KeyboardInterrupt
);