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 ncoghlan
Recipients Mark.Shannon, deleted0524, erik.bray, gregory.p.smith, jdemeyer, ncoghlan, njs, xgdomingo, yselivanov
Date 2018-02-26.02:41:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519612906.89.0.467229070634.issue29988@psf.upfronthosting.co.za>
In-reply-to
Content
With issue 17611 merged (which moves stack unwinding to the compiler), I expect the exact details of this problem to have changed, but the general problem still exists: Ctrl-C may lead to __exit__ (or __aexit__) not being called even after __enter__ (or __aenter__) returns successfully, and this may happen even for context managers implemented with uninterruptible methods (e.g. in C in CPython without calling back into any Python code).
History
Date User Action Args
2018-02-26 02:41:47ncoghlansetrecipients: + ncoghlan, gregory.p.smith, njs, Mark.Shannon, erik.bray, jdemeyer, yselivanov, deleted0524, xgdomingo
2018-02-26 02:41:46ncoghlansetmessageid: <1519612906.89.0.467229070634.issue29988@psf.upfronthosting.co.za>
2018-02-26 02:41:46ncoghlanlinkissue29988 messages
2018-02-26 02:41:46ncoghlancreate