|
From: T. H. <har...@ya...> - 2008-12-01 22:13:59
|
When you have a keyword that has a list of values, eg:
PathList = /path1, /path2
config['PathList'] returns a list of values. However if you have only one value:
PathList = /path1
config['PathList'] returns a string value.
It would be nice if you can tell ConfigObj to always return values for certain keywords as a list, even if there is only one value. In the second case above, config['PathList'] would return [ '/path1' ]. Is there a way to do this? I'm sure others would have run into this issue.
Thanks,
Hari
|