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 abarnert
Recipients abarnert, docs@python, mjpieters
Date 2014-10-28.23:02:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414537336.35.0.681459274445.issue22755@psf.upfronthosting.co.za>
In-reply-to
Content
It may be pretty hard to come up with a good example for closing in the stdlib that shouldn't just be turned into a context manager… 

There are some types where using it in a with statement is sensible, but unusual enough that you might want to make it explicit (maybe logging.Handler?), but does that make a good example?
History
Date User Action Args
2014-10-28 23:02:16abarnertsetrecipients: + abarnert, mjpieters, docs@python
2014-10-28 23:02:16abarnertsetmessageid: <1414537336.35.0.681459274445.issue22755@psf.upfronthosting.co.za>
2014-10-28 23:02:16abarnertlinkissue22755 messages
2014-10-28 23:02:16abarnertcreate