Message257556
In issue #25637, Guido said he didn't want to move stuff out of collections.abc, so the context manager ABC will go into contextlib.
To answer Martin's point, I could make __exit__ abstract to begin with to make people override it properly. The only reason I thought of providing a default implementation is that it inherently isn't required to be implemented to match the context manager interface/protocol. But as you pointed out, the usefulness of a context manager is derived from doing stuff in __exit__(), so I will make it abstract. |
|
Date |
User |
Action |
Args |
2016-01-05 21:19:54 | brett.cannon | set | recipients:
+ brett.cannon, gvanrossum, rhettinger, ncoghlan, martin.panter, Nan Wu |
2016-01-05 21:19:53 | brett.cannon | set | messageid: <1452028793.99.0.658348889526.issue25609@psf.upfronthosting.co.za> |
2016-01-05 21:19:53 | brett.cannon | link | issue25609 messages |
2016-01-05 21:19:53 | brett.cannon | create | |
|