This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author njs
Recipients Mark.Shannon, deleted0524, erik.bray, gregory.p.smith, jdemeyer, ncoghlan, njs, xgdomingo, yselivanov
Date 2017-09-04.22:36:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504564571.86.0.23292680102.issue29988@psf.upfronthosting.co.za>
In-reply-to
Content
This would still provide value even if you have to do a GET_AWAITABLE in the protected region: the most common case is that __aenter__ is a coroutine function, which means that its __await__ is implemented in C and already protected against interrupts.

Also, to make this fully useful we need some way to protect arbitrary callables against interrupts anyway (to handle the case where the signal arrives during the actual __enter__ or __exit__ body), so saying that we also need to be able to protect __await__ isn't a big deal.
History
Date User Action Args
2017-09-04 22:36:11njssetrecipients: + njs, gregory.p.smith, ncoghlan, Mark.Shannon, erik.bray, jdemeyer, yselivanov, deleted0524, xgdomingo
2017-09-04 22:36:11njssetmessageid: <1504564571.86.0.23292680102.issue29988@psf.upfronthosting.co.za>
2017-09-04 22:36:11njslinkissue29988 messages
2017-09-04 22:36:11njscreate