My ini file:
[1]
[4]
[5]
[6]
[9]
[1]
[1]
My python Script
import configparser
config = configparser.ConfigParser()
config.readfp(open('inifile.ini'))
print config.sections()
>>> ['1', '4', '5', '6', '9'] #where are two more '1' ?
How to get all actual values ? Configparser must be used.