Force flushing buffers

Madhusudan Singh spammers-go-here at spam.invalid
Wed Oct 12 15:53:37 EDT 2005


skip at pobox.com 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 !!



More information about the Python-list mailing list