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 Valentin David, abarry, gregory.p.smith, ncoghlan, vstinner, yselivanov
Date 2016-06-13.19:24:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465845859.76.0.761473748012.issue27122@psf.upfronthosting.co.za>
In-reply-to
Content
Greg, I think you should apply your change to eliminate the regression and get us back to the state of all stdlib context managers being well-behaved in this regard (we unfortunately missed the 3.5.2 release, but that will ensure it's fixed for 3.5.3).

Given the challenges I had trying to reproduce the hang with a plain context manager rather than a generator, I now the problem is specifically just #25782 - in the absence of that, ExitStack() should misbehave in the same way actual nested with statements would, rather than trying to implicitly "fix" the misbehaving context managers.
History
Date User Action Args
2016-06-13 19:24:19ncoghlansetrecipients: + ncoghlan, gregory.p.smith, vstinner, yselivanov, abarry, Valentin David
2016-06-13 19:24:19ncoghlansetmessageid: <1465845859.76.0.761473748012.issue27122@psf.upfronthosting.co.za>
2016-06-13 19:24:19ncoghlanlinkissue27122 messages
2016-06-13 19:24:19ncoghlancreate