Single Instance of app

Tim Peters at
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 module for the excruciating dance needed to create
temp files safely.

More information about the Python-list mailing list