[issue26537] ConfigParser has optoinxform, but not sectionxform
Gereon Kaiping
report at bugs.python.org
Fri Mar 11 01:40:17 EST 2016
New submission from Gereon Kaiping:
configparser.ConfigParser (resp. ConfigParser.RawConfigParser for python2) has a optionxform function which converts the option names in a section to lower case by default.
A similar function for section titles would be expected (cf. https://github.com/lmaurits/BEASTling/issues/46#issuecomment-195131900), but it does not exist.
If ConfigParser called such a function (reasonably named sectionxform), which would default to None (or the identity function) for backward compatibility, that would be nice and consistent.
----------
components: Library (Lib)
messages: 261543
nosy: Anaphory
priority: normal
severity: normal
status: open
title: ConfigParser has optoinxform, but not sectionxform
versions: Python 2.7, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26537>
_______________________________________
More information about the Python-bugs-list
mailing list