Serhiy Storchaka <[email protected]> added the comment:
What is a problem with writing two lines of code?
with open(...) as f:
config.write(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
to open().
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.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue28788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com