I am using ConfigObj in Python to read from my config file. I need to read a list of lists from the config file. Here's what I've tried so far:
- sections and subsections - creates dictionaries, not lists
list_of_lists = (1, 2, (3, 4))
-ConfigObj
treats everything as strings, and produces the list['(1', '2', '(3', '4))']
What I would like to have (in Python context) is something like this:
list_of_lists = [1, 2, [3, 4, ]]
Can someone please suggest a way to do this? I'm open to alternatives as well. Thanks in advance.