[New-bugs-announce] [issue2204] document ConfigParser behaviour when a file has same section multiple times

Raghuram Devarakonda report at bugs.python.org
Thu Feb 28 23:12:00 CET 2008


New submission from Raghuram Devarakonda:

ConfigParser.add_section() raises DuplicateSectionError if add_section()
is called with the name of a section that is already present. How ever,
if a section is present multiple times in a file, readfp() does not
raise any exception. Instead, the sections are "combined" with values in
latter sections overwriting previous values (if any). This should be
documented in readfp(). I tried few alternatives but the sentences don't
look right. I am creating the issue in the hope that some one else may
give it a try while I continue to come up with a doc patch.

----------
assignee: georg.brandl
components: Documentation
messages: 63109
nosy: draghuram, georg.brandl
severity: normal
status: open
title: document ConfigParser behaviour when a file has same section multiple times
type: behavior
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2204>
__________________________________


More information about the New-bugs-announce mailing list