]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Give ConfigParser the capability to set as well as read options, and to write
authorEric S. Raymond <esr@thyrsus.com>
Mon, 10 Jul 2000 18:11:00 +0000 (18:11 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 10 Jul 2000 18:11:00 +0000 (18:11 +0000)
commit417c489defd33ceb4a3cb76efaf4975ee886221e
tree1a51f55578f47ba1f181b3b3f49ed81a7550ce06
parent3e3175b5e7cfdb5ad1ba087a5f0b01e414cbad40
Give ConfigParser the capability to set as well as read options, and to write
a representation of the configuration state in .ini format that can be read
back in by a future read() call.  Thus this class is now a back end
for .ini editors as well as parsers.

This patch is complete and tested, but exposes a bug in the ConfigParser
implementation which I have not yet fixed.  Because case information is
discarded during parsing, the output of write() has its case smashed.

I wrote this for a SourceForge interface script called forgetool.
Documentation for the new entry points included.
Doc/lib/libcfgparser.tex
Lib/ConfigParser.py