purging file buffers - to make new data be written to file
Peter Hansen
peter at engcorp.com
Sun Apr 7 18:52:41 EDT 2002
ddoc wrote:
>
> Can I do that from within a python script, or do I have to give a command
> line argument to make Python start without buffers?
>
> On Linux. The program is to save a memo in a slightly organised format,
> but I find the file is not written until Python exits.
Can you post a code snippet that reproduces the problem? Maybe
you just need to close() the file...
More information about the Python-list
mailing list