Serhiy Storchaka added the comment:

> - it won't work for reading: TextIOWrapper calls the read1() method, which is 
> only defined by BufferedIO objects.

Since 3.3 TextIOWrapper works with raw IO objects (issue12591).

> Yes. And I just noticed that the _io module (the C version) will also buffer 
> encoded bytes, up to f._CHUNK_SIZE.

Use write_through=True to disable this.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17404>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to