Nick Coghlan added the comment:

As per Nathaniel's comments on issue 29988 and 31388, doing this robustly 
relies on:

1. the event loop being able to reliably guard itself and __aexit__ method 
implementations against interrupts (issue 31388)
2. "async with" statements ensuring that if the frame resumes after calling 
__aenter__, then it will also call __aexit__ (as was done for synchronous with 
statements in issue 29988)

----------
dependencies: +Provide a way to defer SIGINT handling in the current thread, 
with statements are not ensuring that __exit__ is called if __enter__ succeeds

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

Reply via email to