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 <>
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.
Date User Action Args
2020-04-03 21:50:50serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, michael.foord, bmclarnon
2020-04-03 21:50:50serhiy.storchakasetmessageid: <>
2020-04-03 21:50:50serhiy.storchakalinkissue40126 messages
2020-04-03 21:50:50serhiy.storchakacreate