Message214886
> If someone is willing to do the work (and I am), is there a reason *not* to
> allow TextIOWrapper to accept bytes-like objects?
Yes, there are. The code which works only with bytes is much simpler. Not only
TextIOWrapper, but many other classes in the stdlib (GzipFile, BZ2File,
LZMAFile, ZipFile) expect that the read method of underlied file object returns
bytes, so your MyByteStream is just broken for such cases. |
|
Date |
User |
Action |
Args |
2014-03-26 10:07:25 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, nikratio |
2014-03-26 10:07:25 | serhiy.storchaka | link | issue21057 messages |
2014-03-26 10:07:25 | serhiy.storchaka | create | |
|