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 pitrou
Recipients eric.smith, olemis, pitrou, tarek
Date 2010-05-03.13:53:10
SpamBayes Score 0.03319571
Marked as misclassified No
Message-id <1272894932.21551.0.camel@localhost.localdomain>
In-reply-to <1272894145.15.0.703696748784.issue8604@psf.upfronthosting.co.za>
Content
> @Antoine: Yes, that would be the idea (provide a robust pattern by
> using a temporary file, then rename it)

Then perhaps it would be better as a context manager:

with shutil.atomic_write("foo", "wb") as f:
    f.write("mycontents")
History
Date User Action Args
2010-05-03 13:53:11pitrousetrecipients: + pitrou, eric.smith, tarek, olemis
2010-05-03 13:53:10pitroulinkissue8604 messages
2010-05-03 13:53:10pitroucreate