[issue2204] document ConfigParser behaviour when a file has same section multiple times

Łukasz Langa report at bugs.python.org
Sat Jul 24 04:17:26 CEST 2010


Łukasz Langa <lukasz at langa.pl> added the comment:

I personally would keep the current behaviour so that:
- creating a duplicate section programatically invokes an error
- reading a file which has duplicate sections causes an implicit merge without any exceptions

This is quite understandable, more so when you consider how ConfigParser merges configuration from multiple sources as well.

Brett, the only thing I guess we could do here is to adjust the documentation so it's more clear on the default behaviour.

----------
nosy: +lukasz.langa

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2204>
_______________________________________


More information about the Python-bugs-list mailing list