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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, hynek, pitrou, rbcollins, stutzbach
Date 2013-03-12.18:58:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363114716.15.0.156650168864.issue17404@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2013-03-12 18:58:36amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, rbcollins, benjamin.peterson, stutzbach, hynek
2013-03-12 18:58:36amaury.forgeotdarcsetmessageid: <1363114716.15.0.156650168864.issue17404@psf.upfronthosting.co.za>
2013-03-12 18:58:36amaury.forgeotdarclinkissue17404 messages
2013-03-12 18:58:35amaury.forgeotdarccreate