Tarek Ziadé <ziade.ta...@gmail.com> added the comment: 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") ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8604> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com