file write question

Hrvoje Niksic hniksic at xemacs.org
Sun Jan 27 04:25:12 CET 2008


"Robb Lane (SL name)" <rdrink at gmail.com> writes:

> ... or just leave it till it's done?
> I don't need to use the file contents until the script is done
> (although it would be nice... just to check it while it's working),

Use flush() to force the contents out at opportune times without
closing and reopening the file object.



More information about the Python-list mailing list