Single Instance of app

Tim Peters tim.one at home.com
Mon Aug 27 08:26:00 CEST 2001


[Tim Hammerquist]
> ...
> While I'm at it, I've never actually seen (nor needed, thus far) Python
> code to get an atomic lock on a file.  What's the idiom in Python?

I'm not sure exactly what's meant by "atomic lock on a file", but you can
study the std tempfile.py module for the excruciating dance needed to create
temp files safely.





More information about the Python-list mailing list