David Beazley <d...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10791>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to