Message132060
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 |
|
Date |
User |
Action |
Args |
2011-03-25 00:39:49 | davidsarah | set | recipients:
+ 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:49 | davidsarah | set | messageid: <1301013589.08.0.507025855175.issue1602@psf.upfronthosting.co.za> |
2011-03-25 00:39:48 | davidsarah | link | issue1602 messages |
2011-03-25 00:39:48 | davidsarah | create | |
|