[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews
Martin v. Löwis
report at bugs.python.org
Sun Apr 13 00:23:05 CEST 2014
Martin v. Löwis added the comment:
Nikolaus, can you please restate from scratch what the issue is? If the issue is still the one you posed in msg214776, I think the issue should be closed as "invalid" - it's *not* the case that there is no good reason for TextIOWrapper not accepting any bytes-like object. Or, to drop the double negation: as Serhiy states, read1() should return bytes, and it's perfectly fine to rely on that. Your MyByteStream ought to fail, so it is correct behaviour that it does fail.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21057>
_______________________________________
More information about the Python-bugs-list
mailing list