[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

Senthil report at bugs.python.org
Wed Apr 1 02:04:29 CEST 2009


Senthil <orsenthil at gmail.com> added the comment:

Nope, this is not yet fixed.

$ ./python 
Python 3.1a1+ (py3k:70929, Mar 31 2009, 19:18:12) 
[GCC 4.3.2] on linux2
...
...
>>> f_bytes = urllib.request.urlopen("http://www.python.org")
>>> f_string = io.TextIOWrapper(f_bytes,"iso-8859-1")
>>> print(f_string.read())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: not readable

----------
nosy: +orsenthil
resolution: fixed -> accepted
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5628>
_______________________________________


More information about the Python-bugs-list mailing list