This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients nikratio, pitrou, serhiy.storchaka, vstinner
Date 2014-03-26.10:07:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <3483047.qBRKFg7q3j@raxxla>
In-reply-to <1395794247.28.0.97763223959.issue21057@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2014-03-26 10:07:25serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, nikratio
2014-03-26 10:07:25serhiy.storchakalinkissue21057 messages
2014-03-26 10:07:25serhiy.storchakacreate