Message178641
| Author |
lukasz.langa |
| Recipients |
lukasz.langa, python-dev, wolfmanx |
| Date |
2012年12月31日.03:09:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1356923400.26.0.313282958192.issue16820@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|