Message 106604 - Python tracker (original) (raw)
It seems you are proposing to call "atomic" something which isn't atomic:
def atomic_rename(src, dst): if os.path.exists(dst): old = _create_old_filename(dst) rename(dst, old) rename(src, dst) unlink(old)