The typical ConfigParser generated file looks like:
[Section]
bar=foo
[Section 2]
bar2= baz
Now, is there a way to index lists like, for in
I landed here seeking to consume this...
[global]
spys = richard.sorge@cccp.gov, mata.hari@deutschland.gov
The answer is to split it on the comma and strip the spaces:
SPYS = [e.strip() for e in parser.get('global', 'spys').split(',')]
To get a list result:
['richard.sorge@cccp.gov', 'mata.hari@deutschland.gov']
It may not answer the OP's question exactly but might be the simple answer some people are looking for.