ConfigParser, mapping one key to multiple values

Thomas Guettler guettli at thomas-guettler.de
Wed Jun 1 08:44:45 EDT 2005


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 compatible with Python 2.3

-- 
Thomas Güttler, http://www.thomas-guettler.de/





More information about the Python-list mailing list