exclusive shelve open
gagsl-py2 at yahoo.com.ar
Mon Apr 30 01:15:12 CEST 2007
En Sun, 29 Apr 2007 17:13:42 -0300, <castironpi at gmail.com> escribió:
> On Apr 29, 2:12 pm, castiro... at gmail.com wrote:
>> I'm trying to be safe and make sure only one python instance opens the
>> shelf. Any ideas?
> Using Windows.
Use the locking function in the msvcrt module to lock/unlock the file.
Locking just the first byte is enough.
More information about the Python-list