homepage

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 davidsarah
Recipients David.Sankel, amaury.forgeotdarc, brian.curtin, christian.heimes, christoph, davidsarah, ezio.melotti, hippietrail, lemburg, mark, pitrou, santoso.wijaya, ssbarnea, terry.reedy, tim.golden, tzot, v+python, vstinner
Date 2011年03月25日.00:39:48
SpamBayes Score 2.5921253e-07
Marked as misclassified No
Message-id <1301013589.08.0.507025855175.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
I wrote:
> The only caveat would be that if you write a partial line to the buffer object (or if you set the buffer object to be fully buffered and write to it), and then write to the text stream, the buffer wouldn't be flushed before the text is written.
Actually it looks like that already happens (because the sys.std{out,err} TextIOWrappers are line-buffered separately to their underlying buffers), so it would not be an incompatibility:
$ python3 -c 'import sys; sys.stdout.write("foo"); sys.stdout.buffer.write(b"bar"); sys.stdout.write("baz\n")'
barfoobaz
History
Date User Action Args
2011年03月25日 00:39:49davidsarahsetrecipients: + davidsarah, lemburg, terry.reedy, tzot, amaury.forgeotdarc, pitrou, vstinner, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, brian.curtin, santoso.wijaya, David.Sankel
2011年03月25日 00:39:49davidsarahsetmessageid: <1301013589.08.0.507025855175.issue1602@psf.upfronthosting.co.za>
2011年03月25日 00:39:48davidsarahlinkissue1602 messages
2011年03月25日 00:39:48davidsarahcreate

AltStyle によって変換されたページ (->オリジナル) /