[issue32917] ConfigParser writes a superfluous final blank line

TitanSnow report at bugs.python.org
Sat Mar 10 07:57:50 EST 2018


TitanSnow <tttnns1024 at gmail.com> added the comment:

For the case of sequential writes to the same file,
I think it’s a invalid use case.
The file can be created or modified by
user or other applications, breaking the assume of
ConfigParser. It’s better to have a method to merge
two ConfigParser objects then writes it into the file
at one time.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32917>
_______________________________________


More information about the Python-bugs-list mailing list