Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21716 > unrolled thread

Re: Is there a ConfigParser which keeps comments

Started byKarim <kliateni@gmail.com>
First post2012-03-15 22:49 +0100
Last post2012-03-15 22:49 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Is there a  ConfigParser which keeps comments Karim <kliateni@gmail.com> - 2012-03-15 22:49 +0100

#21716 — Re: Is there a ConfigParser which keeps comments

FromKarim <kliateni@gmail.com>
Date2012-03-15 22:49 +0100
SubjectRe: Is there a ConfigParser which keeps comments
Message-ID<mailman.706.1331848200.3037.python-list@python.org>
Le 15/03/2012 03:48, Steven W. Orr a écrit :
> 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.
>

Sure configObj is a must...I use it too.

http://www.voidspace.org.uk/python/configobj.html

Cheers
Karim

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web