[issue28788] ConfigParser should be able to write config to a given filename, not only into file object
Berker Peksag
report at bugs.python.org
Sun Mar 11 11:32:24 EDT 2018
Berker Peksag <berker.peksag at gmail.com> added the comment:
I agree with Serhiy and Terry. Also, PR 5999 does not accept pathlib.Path() objects at the moment. This and Serhiy's following comment are good examples of why it shouldn't be added to the standard library in my opinion:
> 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().
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28788>
_______________________________________
More information about the Python-bugs-list
mailing list