[Python-ideas] Responsive signal handling

Antoine Pitrou solipsis at pitrou.net
Mon Jun 22 10:41:17 CEST 2015


On Sun, 21 Jun 2015 19:16:32 -0700
Devin Jeanpierre <jeanpierreda at gmail.com>
wrote:
> 
> One could implement one or both of the following:
> 
> - Keep only running signal handlers in the main thread, but allow them
> to run even in the middle of a call to a C function for as many C
> functions as we can.
> This is not possible in general, but it can be made to work for all
> blocking operations in the stdlib.

Are you aware that it is already the case today (perhaps not for "all
blocking operations", but at least for those that return EINTR when
interrupted)?
By the way, have you read https://www.python.org/dev/peps/pep-0475/ ?

Regards

Antoine.




More information about the Python-ideas mailing list