py3k buffered IO - flush() required between read/write?

Terry Reedy tjreedy at udel.edu
Thu May 12 15:44:31 EDT 2011


On 5/12/2011 9:30 AM, Genstein wrote:
>> With 3.2 on winxp, that is what I get with StringIO, text file, and
>> bytes file (the first two with b's removed). I would expect the same on
>> any system. If you get anything different, I would consider it a bug
>
> Thanks Terry, you're entirely right there; I trimmed down my test case,
> asked for confirmation and have reported it as
> http://bugs.python.org/issue12062. Noted here in case anyone else trips
> over it.

I want people to know that with a simple, minimal, easy to run and 
reproduce and think about test case posted, more info, more test cases, 
and probable fixes were posted within an hour. (Fixes are not always 
that quick, but stripping away irrelevancies really helps speed the 
process.)

-- 
Terry Jan Reedy




More information about the Python-list mailing list