[issue23835] configparser does not convert defaults to strings
James Tocknell
report at bugs.python.org
Wed Apr 1 06:23:08 CEST 2015
New submission from James Tocknell:
ConfigParser(defaults={1:2.4}) and ConfigParser(defaults={"a":5.2}) cause an exception when configparser tries to perform string operations on 1 and 5.2. I didn't see it documented that defaults must only contain strings, and using ConfigParser['DEFAULT'] = {1:2.4} does the necessary string conversion, so it looks like there should be some conversion done to the defaults.
----------
components: Library (Lib)
messages: 239768
nosy: aragilar
priority: normal
severity: normal
status: open
title: configparser does not convert defaults to strings
type: crash
versions: Python 2.7, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23835>
_______________________________________
More information about the Python-bugs-list
mailing list