Force flushing buffers

skip at pobox.com skip at pobox.com
Thu Oct 6 19:57:20 EDT 2005


    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



More information about the Python-list mailing list