Antoine Pitrou <pit...@free.fr> 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).
Using a context manager, though, is the recommended idiom to write files. I think there's a value in remaining consistent. We don't want to end up like PHP which has dozens of different idioms of doing similar things. ---------- _______________________________________ 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