Message301669
| Author |
ncoghlan |
| Recipients |
giampaolo.rodola, gregory.p.smith, ncoghlan, njs, vstinner, yselivanov |
| Date |
2017年09月08日.02:28:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1504837692.14.0.557083250889.issue31387@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|