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

2011-05-12 Thread Genstein
On 12/05/2011 20:44, Terry Reedy wrote: 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 real

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

2011-05-12 Thread Terry Reedy
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 tri

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

2011-05-12 Thread Genstein
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 conf

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

2011-05-11 Thread Martin P. Hellwig
On 11/05/2011 19:08, Genstein wrote: On 11/05/2011 19:24, Terry Reedy wrote: writing and reading. If you want others to look at this more, you should 1) produce a minimal* example that demonstrates the questionable behavior, and 2) show the comparative outputs that raise your question. Thanks

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

2011-05-11 Thread Terry Reedy
On 5/11/2011 3:08 PM, Genstein wrote: On 11/05/2011 19:24, Terry Reedy wrote: writing and reading. If you want others to look at this more, you should 1) produce a minimal* example that demonstrates the questionable behavior, and 2) show the comparative outputs that raise your question. Thanks

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

2011-05-11 Thread Genstein
On 11/05/2011 19:24, Terry Reedy wrote: writing and reading. If you want others to look at this more, you should 1) produce a minimal* example that demonstrates the questionable behavior, and 2) show the comparative outputs that raise your question. Thanks for a quick response. Perhaps I was be

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

2011-05-11 Thread Terry Reedy
On 5/11/2011 12:27 PM, Genstein wrote: In py3k is it necessary to flush() a file between read/write calls in order to see consistent results? I ask because I have a case under Python 3.2 (r32:88445) where it does appear to be, on both Gentoo Linux and Windows Vista. I've naturally read http://

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

2011-05-11 Thread Genstein
Hey all, Apologies if this is a dumb question (self = Python noob), but under py3k is it necessary to flush() a file between read/write calls in order to see consistent results? I ask because I have a case under Python 3.2 (r32:88445) where it does appear to be, on both Gentoo Linux and Wind