Re: ConfigParser, mapping one key to multiple values

2005-06-02 Thread Thomas Guettler
Am Wed, 01 Jun 2005 17:18:42 -0500 schrieb Larry Bates: > I accomplish this by using the following construct > with ConfigParser: > > [sync files] > ignore_001=.*/foodir/.*\.pyc > ignore_002=.*/foodir/.*~ Hi, I found out, that you can have newlines in the value: ignore_regex = .*/CVS(/.*)?

Re: ConfigParser, mapping one key to multiple values

2005-06-01 Thread Larry Bates
I accomplish this by using the following construct with ConfigParser: [sync files] ignore_001=.*/foodir/.*\.pyc ignore_002=.*/foodir/.*~ . . . It may be a workaround, but it works just fine. It is easy to write code to handle this (not tested): section='sync files' ignore_options=[x for x in in

ConfigParser, mapping one key to multiple values

2005-06-01 Thread Thomas Guettler
Hi, I need a config like this: [sync files] ignore=".*/foodir/.*\.pyc" ignore=".*/foodir/.*~" ... The ConfigParser of the standard library can't handle this, because one key maps to multiple values. Is there a simple and lightweight config parser which can handle this? Thomas PS: Needs to be