This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients tarek, vstinner
Date 2010-05-27.09:45:56
SpamBayes Score 0.4503371
Marked as misclassified No
Message-id <>
A first implementation can be:

if in ('nt', 'ce'):
   def atomic_rename(a, b):
      if os.path.exists(b):
      rename(a, b)
   atomic_rename = os.rename

This implementation is atomic on POSIX, and not atomic on Windows. Tell me if I am wrong.

It can be improved later by adding the support of better Windows functions.
Date User Action Args
2010-05-27 09:45:59vstinnersetrecipients: + vstinner, tarek
2010-05-27 09:45:59vstinnersetmessageid: <>
2010-05-27 09:45:57vstinnerlinkissue8828 messages
2010-05-27 09:45:56vstinnercreate