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 John Belmonte, asvetlov, ncoghlan, njs, xtreak, yselivanov
Date 2019-09-03.08:29:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
The query in #37743 highlights that generator functions and other wrapped iterator factories actually face a similar problem: they need the function body to contain "yield from wrapped(*args, **kwargs)" if the CM is going to be closed after the iterator terminates (or is closed), rather than closing immediately after the iterator is created.
History
Date User Action Args
2019-09-03 08:29:05ncoghlansetrecipients: + ncoghlan, njs, asvetlov, yselivanov, xtreak, John Belmonte
2019-09-03 08:29:05ncoghlansetmessageid: <[email protected]>
2019-09-03 08:29:05ncoghlanlinkissue37398 messages
2019-09-03 08:29:05ncoghlancreate