[fcntl]how to lock a file
Eric S. Johansson
esj at harvee.org
Fri Apr 7 12:00:24 EDT 2006
marcello wrote:
> Hello
> I need to do this:
> 1 opening a file for writing/appending
> 2 to lock the file as for writing (i mean: the program
> that lock can keep writing, all others programs can't )
> 3 wtite and close/unlock
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203
been using it for years and it makes locking really simple. I have no
idea why the main Python distribution is missing such an important piece
of functionality.
More information about the Python-list
mailing list