[Python-ideas] Asynchronous exception handling around with/try statement borders

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 29 05:18:11 EDT 2017


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


More information about the Python-ideas mailing list