Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.207 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.63; '*S*': 0.04; 'library,': 0.05; 'question?': 0.09; 'am,': 0.12; 'fruit': 0.16; 'hypothetical': 0.16; 'parser,': 0.16; 'subject:which': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; "i'm": 0.28; 'behaves': 0.30; 'comments.': 0.30; 'config': 0.30; 'zero.': 0.30; 'url:library': 0.31; 'minor': 0.32; 'does': 0.32; 'implement': 0.32; 'there': 0.33; 'this.': 0.33; 'header:User-Agent:1': 0.33; 'hi,': 0.34; 'to:addr:python-list': 0.35; 'none': 0.35; 'something': 0.35; 'things': 0.35; 'url:python': 0.35; 'but': 0.37; 'should': 0.38; 'url:org': 0.39; 'to:addr:python.org': 0.40; 'your': 0.61; 'divided': 0.73; 'subject: ': 0.74; 'god': 0.79; 'difference.': 0.84; "driver's": 0.84; 'flies': 0.84; 'me!': 0.84; 'stranger': 0.84; 'holes': 0.91; 'subject:there': 0.91; '000': 0.93 Date: Wed, 14 Mar 2012 22:48:32 -0400 From: "Steven W. Orr" Organization: SysLang, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Is there a ConfigParser which keeps comments References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 15 Mar 2012 13:31:54 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331814716 news.xs4all.nl 6943 [2001:888:2000:d::a6]:37063 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21661 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. -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net