Amaury Forgeot d'Arc added the comment:
The proposed workaround seems to work ("wb" instead of "wt"!), with the
following restrictions:
- it's not really unbuffered: the encoder has its own buffers (OK, in the
stdlib only 'idna' encoding will retain data)
- it won't work for reading: TextIOWrapper calls the read1() method, which is
only defined by BufferedIO objects.
IMO this explains why it's not a supported combination in io.open().
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17404>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com