Slide 86
Slide 86 text
Creating sections from a dictionary
cp['ui'] = {
'askusername': 'yes',
'fallbackencoding': 'utf-8',
'ignore': '~/.hgignore',
}
print(cp['ui'].items())
The output:
[('ignore', '~/.hgignore'),
('askusername', 'yes'),
('fallbackencoding', 'utf-8'),
('host', 'localhost'),
('port', '8080')]