Author mjpieters
Recipients docs@python, mjpieters
Date 2014-10-28.22:40:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
urllib.request.urlopen() now always produces a context manager (either a HTTPResponse or addinfourl object). The example for contextlib.closing still uses urllib.request.urlopen as an example for the context manager wrapper, see

This is confusing users that now expect the object not to be a context manager, see:

Can a different example be chosen?
Date User Action Args
2014-10-28 22:40:52mjpieterssetrecipients: + mjpieters, docs@python
2014-10-28 22:40:52mjpieterssetmessageid: <>
2014-10-28 22:40:52mjpieterslinkissue22755 messages
2014-10-28 22:40:52mjpieterscreate