[docs] [issue28714] Addition to Documentation of configparser.ConfigParser.write()

George Fischhof report at bugs.python.org
Thu Nov 24 08:04:00 EST 2016


George Fischhof added the comment:

Hi Berker, 

It is true, I agree ;-)

But this way ConfigParser works different than xml parsers (for example elementtree from system lib), as when I use elementtree.write it wil create a file with full and valid xml content.

But ConfigParser is "able" ;-) to create file with invalid content (for example (this was my findings) creates duplicated sections.

So it could be a feature request for ConfigParser:
It should be able to write config to a given filename, not only into file object.
(Like xml parser)

Kind regards,
George

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28714>
_______________________________________


More information about the docs mailing list