KeyboardInterrupt from syscalls
fredrik at pythonware.com
Wed Nov 22 19:45:41 CET 2006
Fredrik Tolf wrote:
> So how does it work? Does my code get to return Py_FALSE, and the
> interpreter ignores it, seeing that an exception is set? Is a non-local
> exit performed right over my call stack (in which case my next question
> would be how to clean up resources being used from my C code)? Or does
> something completely else happen?
the signal handler adds an entry to a "pending calls" queue, which is
checked by the interpreter at regular intervals.
More information about the Python-list