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 tarek
Recipients eric.smith, meatballhat, olemis, pitrou, tarek
Date 2010-05-03.17:21:58
SpamBayes Score 0.165167
Marked as misclassified No
Message-id <>
Well, a context manager sounds overkill since we just want to write some content in a file (and nothing else during that context). 

I think a simple call is straightforward:

  shutil.atomic_write("foo", "contents", mode="wb")
Date User Action Args
2010-05-03 17:22:00tareksetrecipients: + tarek, pitrou, eric.smith, olemis, meatballhat
2010-05-03 17:22:00tareksetmessageid: <>
2010-05-03 17:21:59tareklinkissue8604 messages
2010-05-03 17:21:58tarekcreate