[issue10791] Wrapping TextIOWrapper around gzip files
report at bugs.python.org
Wed Feb 23 15:37:11 CET 2011
David Beazley <dave at dabeaz.com> added the comment:
If I can find some time, I may took a look at this. I just noticed that similar problems arise trying to wrap TextIOWrapper around the file-like objects returned by urllib.request.urlopen as well.
In the big picture, some discussion of what it means to be "file-like" might be in order. If something is "file-like" and binary, should that always imply that I be able to wrap a TextIOWrapper object around it in order to encode/decode text? I would argue "yes", but I'd be curious to know what others think.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list