with python 2.7 and configparser module is it possible to get data in list format?
i.e
config = ConfigParser()
config.read( "BACK.ini") # read my input file
dizP=dict(config.items("sezione")) # assign data to dictionary
dizP = {
"lista1": lista,
"lista2": lista1
...
}
problem is data in lista1 and lista2 are seen as string so if I do:
print lista1[1:10]
this return the first ten char int the list, not the comma separated values
How can I get the list format for the read data from config parser?