Message258244
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. |
|
Date |
User |
Action |
Args |
2016-01-14 22:49:22 | martin.panter | set | recipients:
+ martin.panter, gvanrossum, vstinner, benhoyt, serhiy.storchaka |
2016-01-14 22:49:22 | martin.panter | set | messageid: <1452811762.96.0.813033749502.issue25994@psf.upfronthosting.co.za> |
2016-01-14 22:49:22 | martin.panter | link | issue25994 messages |
2016-01-14 22:49:22 | martin.panter | create | |
|