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


Groups > comp.lang.python > #60476

Re: general ConfigParser question [PS]

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subsequent': 0.05; '(especially': 0.07; 'rfc': 0.09; 'subject: [': 0.09; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; '-tkc': 0.16; '822': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; 'wrote:': 0.18; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'header': 0.24; 'cc:no real name:2**0': 0.24; '(see': 0.26; 'header:In-Reply- To:1': 0.27; 'wondering': 0.29; 'tim': 0.29; 'lines': 0.31; 'chase': 0.31; 'style': 0.33; 'but': 0.35; 'subject:]': 0.38; 'handle': 0.38; 'easy': 0.60; 'up,': 0.60; 'mentioned': 0.61; '8bit%:21': 0.69; 'default': 0.69; 'configparser': 0.84; 'received:50.22': 0.84; 'relate': 0.84; 'rita': 0.84
Date Mon, 25 Nov 2013 18:35:57 -0600
From Tim Chase <python.list@tim.thechases.com>
To Tim Chase <python.list@tim.thechases.com>
Subject Re: general ConfigParser question [PS]
In-Reply-To <20131125182906.732e210d@bigbox.christie.dr>
References <CAOF-KfgVxVHL1KFBQbWyfn8JE9Ht7mNPK8=+krydMFVs6PcGyw@mail.gmail.com> <20131125182906.732e210d@bigbox.christie.dr>
X-Mailer Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - boston.accountservergroup.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - tim.thechases.com
X-Get-Message-Sender-Via boston.accountservergroup.com: authenticated_id: tim@thechases.com
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3212.1385426076.18130.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385426076 news.xs4all.nl 16008 [2001:888:2000:d::a6]:52643
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60476

Show key headers only | View raw


On 2013-11-25 18:29, Tim Chase wrote:
> On 2013-11-25 18:32, Rita wrote:
> > I was wondering if the default ConfigParser can handle multi line
> > strings (especially in the relate section)
> > 
> > [Relate]
> > data="parent process A child process B
> > Parent process B child process C
> 
> Yes, though I seem to recall that subsequent lines have to be
> indented

Just following up, it's mentioned in the docs, but it's easy to miss:

"""with continuations in the style of RFC 822 (see section 3.1.1,
“LONG HEADER FIELDS”);"""

-tkc

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


Thread

Re: general ConfigParser question [PS] Tim Chase <python.list@tim.thechases.com> - 2013-11-25 18:35 -0600

csiph-web