

def as_dict(config):
    '\n    Converts a ConfigParser object into a dictionary.\n\n    The resulting dictionary has sections as keys which point to a dict of the\n    sections options as key => value pairs.\n    '
    settings = defaultdict((lambda : {
        
    }))
    for section in config.sections():
        for (key, val) in config.items(section):
            settings[section][section] = val
    return settings

dataset/ETHPy150Open GaretJax/lancet/lancet/settings.py as_dict/VarMisuse@58/130 `key`->`section`