file locking

Olivier Berger olivier.berger at idealx.com
Mon Apr 2 12:48:12 EDT 2001


"deadmeat" <root@[127.0.0.1]> disait le 
03/26/01 a 09:52:33 que :

> How do I lock a file on opening it?  the bultin open() only allows me to set
> the read/write mode, not any deny modes.
> 

You may try to have a look at LockFile.py from MailMan's code... I
don't know if it's gonna suit your needs, but worked OK for me on a
simila problem.

-- 
Olivier BERGER                          IDEALX S.A.S.
Développeur senior                      15-17, av. de Ségur
01.44.42.00.00                          F-75007 PARIS
06.81.27.86.79                          http://IDEALX.com/



More information about the Python-list mailing list