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 serhiy.storchaka
Recipients bmclarnon, michael.foord, ncoghlan, serhiy.storchaka
Date 2020-04-03.21:50:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585950650.33.0.759872578858.issue40126@roundup.psfhosted.org>
In-reply-to
Content
I think that the current code is not correct. __exit__ should not be called if __enter__ is failed. If some __enter__ implementation calls other __enter__s it should manually call corresponding __exit__s.
History
Date User Action Args
2020-04-03 21:50:50serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, michael.foord, bmclarnon
2020-04-03 21:50:50serhiy.storchakasetmessageid: <1585950650.33.0.759872578858.issue40126@roundup.psfhosted.org>
2020-04-03 21:50:50serhiy.storchakalinkissue40126 messages
2020-04-03 21:50:50serhiy.storchakacreate