Nick Coghlan added the comment:

I've retitled this issue to specifically cover the synchronous signal-safe 
context management case and filed issue 31387 to cover making it easy to switch 
asyncio over to cooperative SIGINT handling (rather than the default 
pre-emptive handling).

----------
title: (async) with blocks and try/finally are not as KeyboardInterrupt-safe as 
one might like -> with statements are not ensuring that __exit__ is called if 
__enter__ succeeds

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29988>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to