[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

Nick Coghlan report at bugs.python.org
Thu Sep 7 15:40:18 EDT 2017


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 <report at bugs.python.org>
<https://bugs.python.org/issue29988>
_______________________________________


More information about the Python-bugs-list mailing list