[issue8666] Allow ConfigParser.get*() to take a default value

R. David Murray report at bugs.python.org
Mon May 10 21:26:01 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Rather than a raise_on_bad option, it seems to me it would be better to code a try/except clause in cases where you want the default even if there is an error converting the data in the file.  I would expect such cases to be rare, except for cases where you want to issue a warning message and then proceed with the default anyway, in which case you'd need the try/except anyway in order to issue the warning message.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list