[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

Łukasz Langa report at bugs.python.org
Mon Aug 9 23:08:05 CEST 2010


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

Patch included.

New type-related unit tests have shown undesirable behaviour of read_dict() when the given option values are not strings. Support for numbers, booleans and Nones is likely to be expected so this change was introduced. `default' can hold a non-string value. `vars' were modified to accept other types as well, for consistency.

----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file18457/issue9421.diff

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


More information about the Python-bugs-list mailing list