general ConfigParser question [PS]

Tim Chase python.list at tim.thechases.com
Tue Nov 26 01:35:57 CET 2013


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





More information about the Python-list mailing list