Author brett.cannon
Recipients Nan Wu, brett.cannon, gvanrossum, martin.panter, ncoghlan, rhettinger
Date 2016-01-05.21:19:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452028793.99.0.658348889526.issue25609@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-01-05 21:19:54brett.cannonsetrecipients: + brett.cannon, gvanrossum, rhettinger, ncoghlan, martin.panter, Nan Wu
2016-01-05 21:19:53brett.cannonsetmessageid: <1452028793.99.0.658348889526.issue25609@psf.upfronthosting.co.za>
2016-01-05 21:19:53brett.cannonlinkissue25609 messages
2016-01-05 21:19:53brett.cannoncreate