Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
What is a problem with writing two lines of code?
with open(...) as f:
If combine ConfigParser.write() with builtin open() you will need to add
support of encoding, errors, buffering, newline, and other arguments supported
by open(). And don't forgot to update this method after adding new parameters
I'm -1. Not every two lines of code deserve including as a function in the
stdlib. This will clutter the user interface, complicate the implementation,
and add the burden to core developers for maintaining this code.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list