Is there a ConfigParser which keeps comments

Steven W. Orr steveo at syslang.net
Thu Mar 15 03:48:32 CET 2012


On 3/14/2012 6:07 AM, Gelonida N wrote:
> Hi,
>
>
> At the moment I use ConfigParser
> http://docs.python.org/library/configparser.html
> for one of my applications.
>
>
> Now I'm looking for a library, which behaves like config parser, but
> with one minor difference.
>
> The write() mehtod should keep existing comments.
>
> Does anybody know or implement something like this or is there as
> switrch, that I overlooked in hte documentaiton.
>
>

I use ConfigObj.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net



More information about the Python-list mailing list