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


Groups > comp.lang.python > #60476

Re: general ConfigParser question [PS]

Date 2013-11-25 18:35 -0600
From Tim Chase <python.list@tim.thechases.com>
Subject Re: general ConfigParser question [PS]
References <CAOF-KfgVxVHL1KFBQbWyfn8JE9Ht7mNPK8=+krydMFVs6PcGyw@mail.gmail.com> <20131125182906.732e210d@bigbox.christie.dr>
Newsgroups comp.lang.python
Message-ID <mailman.3212.1385426076.18130.python-list@python.org> (permalink)

Show all headers | 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