Message178641
Thanks for your report, Wolfgang. The `clean()` method is now fixed. The
`update()` situation is more complicated, however.
The mapping protocol defines that
mapping.update({'a': 'b', 'c': 'd'})
and
mapping.update(a='b', c='d')
are equivalent to
mapping['a'] = 'b'
mapping['c'] = 'd'
For `configparser` we decided that setting a section on a parser is
a destructive operation (e.g. it overwrites previous options). If the user
finds this undesirable, she can either use `parser['section'].update()` or
`parser.read_dict()` like you suggested.
The bug here is that __setitem__ for the DEFAULTSECT should also clear options
previously set on this section. |
|
Date |
User |
Action |
Args |
2012-12-31 03:10:00 | lukasz.langa | set | recipients:
+ lukasz.langa, python-dev, wolfmanx |
2012-12-31 03:10:00 | lukasz.langa | set | messageid: <1356923400.26.0.313282958192.issue16820@psf.upfronthosting.co.za> |
2012-12-31 03:10:00 | lukasz.langa | link | issue16820 messages |
2012-12-31 03:09:59 | lukasz.langa | create | |
|