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


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

Re: Is there a ConfigParser which keeps comments

Started byTerry Reedy <tjreedy@udel.edu>
First post2012-03-14 13:06 -0400
Last post2012-03-14 13:06 -0400
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 Terry Reedy <tjreedy@udel.edu> - 2012-03-14 13:06 -0400

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

FromTerry Reedy <tjreedy@udel.edu>
Date2012-03-14 13:06 -0400
SubjectRe: Is there a ConfigParser which keeps comments
Message-ID<mailman.638.1331744805.3037.python-list@python.org>
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.

Assuming that you have not overlooked anything, I would just subclass 
ConfigParser with an altered write method.

-- 
Terry Jan Reedy

[toc] | [standalone]


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


csiph-web