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


Groups > comp.lang.python > #21716

Re: Is there a ConfigParser which keeps comments

Date 2012-03-15 22:49 +0100
From Karim <kliateni@gmail.com>
Subject Re: Is there a ConfigParser which keeps comments
References <jjpql7$b70$1@dough.gmane.org> <4F615880.6080005@syslang.net>
Newsgroups comp.lang.python
Message-ID <mailman.706.1331848200.3037.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web