write to the same file from multiple processes at the same time?
Peter Hansen
peter at engcorp.com
Fri May 27 18:35:47 EDT 2005
Christopher Weimann wrote:
> On 05/27/2005-06:02PM, Peter Hansen wrote:
>
>>Hmm... just tried it: you're right! On the other hand, the results were
>>unacceptable: each process has a separate file pointer, so it appears
>>whichever one writes first will have its output overwritten by the
>>second process.
>
> Did you open the files for 'append' ?
Nope. I suppose that would be a rational thing to do for log files,
wouldn't it? I wonder what happens when one does that...
-Peter
More information about the Python-list
mailing list