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

trash80 report at bugs.python.org
Sat Aug 29 05:40:58 CEST 2009


trash80 <trash80 at trash80.org> added the comment:

I am using configparser after combining 3 or so ini files, I would like
to merge similar sections rather than throwing an exception.  Right now
I have to make sure the ini files all have unique sections, but I would
like to able to use same section names, then combine the files and have
the sections merged.  Even merging the variables within sections would
be nice.

Throwing an exception, imho, is no the right direction.  Even in same
name sections are in the same file, the variables where introduced for a
reason.

Or maybe a trigger option ie action=merge or action=flag.

----------
nosy: +trash80
versions: +Python 3.0 -Python 2.6

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


More information about the Python-bugs-list mailing list