[python-win32] How to implement a file lock ??

2005-02-15 Thread ionel
is there a cross-platform library or module for file locking? or at least a win32 implementation. i'm trying to get a lock on some file in a cgi script. ( i got my data erased a few times :P ) -- ionel. ___ Python-win32 mailing list Python-win32@pytho

[python-win32] Re: How to implement a file lock ??

2005-02-15 Thread Fredrik Lundh
"ionel" <[EMAIL PROTECTED]> wrote: > is there a cross-platform library or module for file locking? > or at least a win32 implementation. for windows, see the third example on this page: http://www.effbot.org/librarybook/msvcrt.htm for unix, see: http://www.effbot.org/librarybook/fcntl.

[python-win32] Re: How to implement a file lock ??

2005-02-15 Thread Miki Tebeka
Hello ionel, > is there a cross-platform library or module for file locking? > or at least a win32 implementation. > > i'm trying to get a lock on some file in a cgi script. ( i got my data > erased a few times :P ) I'm using: - from os import open as _open, O_CREAT, O_EXCL, O_RDWR loc