[issue9452] configparser support for reading from strings and dictionaries

Łukasz Langa report at bugs.python.org
Mon Aug 2 02:58:52 CEST 2010


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

Patch updated after review by Ezio Melotti.

To answer a common question that came up in the review: all atypical names and implementation details are there due to consistency with existing configparser code, e.g.:

 * readstring ~= readfp (no _ between words)
 * DuplicateOptionError ~= DuplicateSectionError (not Duplicated)
 * all exceptions use old style BaseClass.__init__ and not super()

API won't change so this has to remain that way. Exceptions may be refactored in one go at a later stage.

----------
Added file: http://bugs.python.org/file18319/issue9452.diff

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


More information about the Python-bugs-list mailing list