This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georgefischhof
Recipients berker.peksag, docs@python, georgefischhof
Date 2016-11-24.13:04:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479992640.61.0.857113468497.issue28714@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-11-24 13:04:00georgefischhofsetrecipients: + georgefischhof, docs@python, berker.peksag
2016-11-24 13:04:00georgefischhofsetmessageid: <1479992640.61.0.857113468497.issue28714@psf.upfronthosting.co.za>
2016-11-24 13:04:00georgefischhoflinkissue28714 messages
2016-11-24 13:04:00georgefischhofcreate