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 scode
Recipients scode
Date 2011-07-04.10:18:24
SpamBayes Score 5.3548672e-05
Marked as misclassified No
Message-id <1309774705.31.0.473593328364.issue12487@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation states it returns a "file-like object". In Python 2.5+ I expect such file-like objects to have a context manager for use with the with statement.

In my particular use-case, the lack comes from urllib.addinfourl but I have not investigated what the possible types returned may be.
History
Date User Action Args
2011-07-04 10:18:25scodesetrecipients: + scode
2011-07-04 10:18:25scodesetmessageid: <1309774705.31.0.473593328364.issue12487@psf.upfronthosting.co.za>
2011-07-04 10:18:24scodelinkissue12487 messages
2011-07-04 10:18:24scodecreate