Message104855
| Author | tarek |
|---|---|
| Recipients | eric.smith, meatballhat, olemis, pitrou, tarek |
| Date | 2010-05-03.17:21:58 |
| SpamBayes Score | 0.16516739 |
| Marked as misclassified | No |
| Message-id | <1272907320.42.0.635903330287.issue8604@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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") |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2010-05-03 17:22:00 | tarek | set | recipients: + tarek, pitrou, eric.smith, olemis, meatballhat |
| 2010-05-03 17:22:00 | tarek | set | messageid: <1272907320.42.0.635903330287.issue8604@psf.upfronthosting.co.za> |
| 2010-05-03 17:21:59 | tarek | link | issue8604 messages |
| 2010-05-03 17:21:58 | tarek | create | |