[issue12487] urllib2.urlopen() returns object missing context manager
Senthil Kumaran
report at bugs.python.org
Mon Jul 4 23:09:07 CEST 2011
Senthil Kumaran <senthil at uthcode.com> added the comment:
It should be documented that in 2.x series the file-like object does not support context management protocol. I have added the superseder issue number, please see the note as if you really want in 2.x, how you can have it using contextlib and in 3.x the context management protocol support is available.
----------
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> URLopener should support context manager protocol
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12487>
_______________________________________
More information about the Python-bugs-list
mailing list