Putting a lock on file.

tiissa tiissa at nonfree.fr
Sun Sep 18 03:46:40 EDT 2005


Harlin Seritt wrote:
> I have a file that a few different running scripts will need to access.
[...]
> This may seem nice on paper but I hate to run a while for an
> indeterminate amount of time. Is there anything else that can be done
> that would be better?

On posix systems, there is a fcntl module [1] that can be useful.


[1] http://python.org/doc/2.4.1/lib/module-fcntl.html



More information about the Python-list mailing list