Re: Force flushing buffers

2005-10-15 Thread Bengt Richter
On Wed, 12 Oct 2005 15:55:10 -0400, Madhusudan Singh <[EMAIL PROTECTED]> wrote: >Robert Wierschke wrote: > >> Madhusudan Singh schrieb: >>> Hi >>> >>> I have a python application that writes a lot of data to a bunch >>> of files >>> from inside a loop. Sometimes, the application h

Re: Force flushing buffers

2005-10-12 Thread Madhusudan Singh
Robert Wierschke wrote: > Madhusudan Singh schrieb: >> Hi >> >> I have a python application that writes a lot of data to a bunch >> of files >> from inside a loop. Sometimes, the application has to be interrupted and >> I find that a lot of data has not yet been writen (and hence

Re: Force flushing buffers

2005-10-12 Thread Madhusudan Singh
[EMAIL PROTECTED] wrote: > > Madhusudan> How do I flush the buffer and force python to write the > Madhusudan> buffers to the files ? I intend to put this inside the > loop. > > f = open("somefile", "w") > f.write("foo") > f.flush() > > Skip Thanks !! -- http://mail.python.org/mai

Re: Force flushing buffers

2005-10-08 Thread Robert Wierschke
Madhusudan Singh schrieb: > Hi > > I have a python application that writes a lot of data to a bunch of > files > from inside a loop. Sometimes, the application has to be interrupted and I > find that a lot of data has not yet been writen (and hence is lost). How do > I flush the buffer an

Re: Force flushing buffers

2005-10-06 Thread Scott David Daniels
Madhusudan Singh wrote: > I have a python application that writes a lot of data to a bunch of > files > from inside a loop. Sometimes, the application has to be interrupted and I > find that a lot of data has not yet been writen (and hence is lost). How do > I flush the buffer and force py

Re: Force flushing buffers

2005-10-06 Thread skip
Madhusudan> How do I flush the buffer and force python to write the Madhusudan> buffers to the files ? I intend to put this inside the loop. f = open("somefile", "w") f.write("foo") f.flush() Skip -- http://mail.python.org/mailman/listinfo/python-list

Force flushing buffers

2005-10-06 Thread Madhusudan Singh
Hi I have a python application that writes a lot of data to a bunch of files from inside a loop. Sometimes, the application has to be interrupted and I find that a lot of data has not yet been writen (and hence is lost). How do I flush the buffer and force python to write the buffers to t