Is there a ConfigParser which keeps comments

Karim kliateni at gmail.com
Thu Mar 15 17:49:57 EDT 2012


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




More information about the Python-list mailing list