[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.