[issue8604] Alias for distutils.file_util.write_file in e.g. shutils
Antoine Pitrou
report at bugs.python.org
Mon May 3 19:31:55 CEST 2010
Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue8604>
_______________________________________
More information about the Python-bugs-list
mailing list