[issue31388] Provide a way to defer SIGINT handling in the current thread

Antoine Pitrou report at bugs.python.org
Fri Sep 8 13:30:09 EDT 2017


Antoine Pitrou added the comment:

Le 08/09/2017 à 19:27, Nathaniel Smith a écrit :
> 
> This seems a bit pointless if we have context local state available though, because using context local state adds zero overhead to yields, and we yield approximately 10,000,000x more frequently than we receive SIGINT.

But what overhead does context local state add to ceval.c?
Of course, we don't have the answer until Yuri actually submits an
implementation, but I'm not sure it can be as light-weight as currently.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31388>
_______________________________________


More information about the Python-bugs-list mailing list