Author martin.panter
Recipients benhoyt, gvanrossum, haypo, martin.panter, serhiy.storchaka
Date 2016-01-14.22:49:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452811762.96.0.813033749502.issue25994@psf.upfronthosting.co.za>
In-reply-to
Content
Contextlib.closing() cannot be used in general, because it doesn’t inherit the iterator protocol from the wrapped generator. So I think you really need a class that implements __exit__(), __iter__(), etc at the same time.
History
Date User Action Args
2016-01-14 22:49:22martin.pantersetrecipients: + martin.panter, gvanrossum, haypo, benhoyt, serhiy.storchaka
2016-01-14 22:49:22martin.pantersetmessageid: <1452811762.96.0.813033749502.issue25994@psf.upfronthosting.co.za>
2016-01-14 22:49:22martin.panterlinkissue25994 messages
2016-01-14 22:49:22martin.pantercreate