ConfigParser, mapping one key to multiple values
Thomas Guettler
guettli at thomas-guettler.de
Thu Jun 2 03:40:52 EDT 2005
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(/.*)?$
.*/\.cvsignore$
.*\.pyc$
.*/\.#
If you call split() on the value, you get the list you need.
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/
More information about the Python-list
mailing list