
June 29, 2017
2:18 a.m.
Nathaniel Smith wrote:
A magic (implemented in C) decorator like @async_signals_masked I think would be the simplest way to do this extension.
I don't have a good feeling about that approach. While implementing the decorator in C might be good enough in CPython to ensure no window of opportunity exists to leak a signal, that might not be true in other Python implementations. -- Greg