New submission from Peter Schuller <peter.schul...@infidyne.com>: 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. ---------- components: Library (Lib) messages: 139746 nosy: scode priority: normal severity: normal status: open title: urllib2.urlopen() returns object missing context manager type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12487> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com