ConfigParser and multiple option names

Florian Lindner Florian.Lindner at xgm.de
Tue May 2 12:29:26 EDT 2006


Alexis Roda wrote:

> Florian Lindner escribió:
>> I think the best solution would be to use a seperation character:
>> 
>> dir="/home/florian, /home/john, home/whoever"
> 
> RCS uses , in filenames

A kommata (,) is a valid character in path names. Ok, you can use quotes.

>> What do you think? Any better ideas?
> 
> A bit ugly, but probably safer and simpler than adding arbitrary
> separators:
> 
> [section]
> dir_1=/home/florian
> dir_2=/home/john
> dir_3=/home/whoever

I tend to use seperators, because I think it's more common to users. (the
PATH environment variable e.g.)
 
> a s(a|i)mple implementation to give you the idea, it has some bugs:
> 
[...]

Thanks for your input!

Florian



More information about the Python-list mailing list