433
431
print config.get('Section1', 'foo', 0, {'bar': 'Documentation',
437
435
interpolation if an option used is not defined elsewhere. ::
441
439
# New instance with 'bar' and 'baz' defaulting to 'Life' and 'hard' each
443
441
config.read('example.cfg')
445
443
print config.get('Section1', 'foo') # -> "Python is fun!"
446
444
config.remove_option('Section1', 'bar')
447
445
config.remove_option('Section1', 'baz')