flock on windowsnt

Fredrik Lundh effbot at telia.com
Sun May 28 08:33:58 EDT 2000

tkssato at yahoo.co.jp wrote:
> I want to use a function such as "flock()" on WindowsNT.
> On unix, it seems "fcntl" module is available.
> Is there any way on NT ?

import msvcrt
msvcrt.locking(fileno, mode, size)

for more info, see:


<!-- (the eff-bot guide to) the standard python library:

More information about the Python-list mailing list