Safely renaming a file without overwriting

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Sun Oct 29 00:17:38 CEST 2006


On Sat, 28 Oct 2006 16:48:37 +0200, Diez B. Roggisch wrote:

> Where does that help for new files? The OP was right in assuming that a 
> race condition could occur when he tests for a file & then tries to 
> create it, as in the meantime it could have been created.

Ah! "Race condition" -- that was the term I was looking for ... now maybe
I'll have some better results with Google.



-- 
Steven.




More information about the Python-list mailing list