Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21610
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'library,': 0.05; 'received:verizon.net': 0.07; 'terry': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subclass': 0.09; 'am,': 0.12; 'method.': 0.15; 'altered': 0.16; 'parser,': 0.16; 'reedy': 0.16; 'subject:which': 0.16; 'wrote:': 0.18; 'jan': 0.19; 'header:In- Reply-To:1': 0.22; "i'm": 0.28; 'assuming': 0.29; 'behaves': 0.30; 'comments.': 0.30; 'config': 0.30; 'url:library': 0.31; 'minor': 0.32; 'does': 0.32; 'implement': 0.32; 'there': 0.33; 'header :User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'hi,': 0.34; 'to:addr:python-list': 0.35; 'something': 0.35; 'url:python': 0.35; 'received:org': 0.36; 'but': 0.37; 'should': 0.38; 'url:org': 0.39; 'to:addr:python.org': 0.40; 'anything,': 0.73; 'subject: ': 0.74; 'difference.': 0.84; 'subject:there': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: Is there a ConfigParser which keeps comments |
| Date | Wed, 14 Mar 2012 13:06:30 -0400 |
| References | <jjpql7$b70$1@dough.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-74-109-121-73.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
| In-Reply-To | <jjpql7$b70$1@dough.gmane.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.638.1331744805.3037.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1331744805 news.xs4all.nl 6985 [2001:888:2000:d::a6]:51287 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:21610 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Is there a ConfigParser which keeps comments Terry Reedy <tjreedy@udel.edu> - 2012-03-14 13:06 -0400
csiph-web