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.0331957
Marked as misclassified No
Message-id <1272894932.21551.0.camel@localhost.localdomain>
In-reply-to <>
> @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:
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