[Python-ideas] Responsive signal handling

Cameron Simpson cs at zip.com.au
Tue Jun 23 06:44:11 CEST 2015

On 22Jun2015 10:28, Guido van Rossum <guido at python.org> wrote:
>I would regret losing the behavior where just raising an exception in a
>signal handler causes the main thread to be interrupted by that exception.

I don't think any of us is sguuesting losing that as the default situation. I 
can see that losing this could be a side effect of a program choosing one of 
these alternatives.

>I agree it would be nice if handlers ran when the main thread is waiting
>for I/O.

Hmm. That sounds doable (I speak as one totally unfamiliar with CPython's 
internals:-) Is this affected or improved by the recent discussions about I/O 
restarting over a signal?

Cameron Simpson <cs at zip.com.au>

No system, regardless of how sophisticated, can repeal the laws of physics or
overcome careless driving actions.      - Mercedes Benz

More information about the Python-ideas mailing list