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 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 <>
In issue #25637, Guido said he didn't want to move stuff out of, 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:54brett.cannonsetrecipients: + brett.cannon, gvanrossum, rhettinger, ncoghlan, martin.panter, Nan Wu
2016-01-05 21:19:53brett.cannonsetmessageid: <>
2016-01-05 21:19:53brett.cannonlinkissue25609 messages
2016-01-05 21:19:53brett.cannoncreate