Message184040
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(). |
|
Date |
User |
Action |
Args |
2013-03-12 18:58:36 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, rbcollins, benjamin.peterson, stutzbach, hynek |
2013-03-12 18:58:36 | amaury.forgeotdarc | set | messageid: <1363114716.15.0.156650168864.issue17404@psf.upfronthosting.co.za> |
2013-03-12 18:58:36 | amaury.forgeotdarc | link | issue17404 messages |
2013-03-12 18:58:35 | amaury.forgeotdarc | create | |
|