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

Éric Araujo report at bugs.python.org
Sun May 9 00:04:07 CEST 2010


Éric Araujo <merwok at netwok.org> added the comment:

I don’t know if this feature request should be discussed on python-ideas first. Do you have real use cases for this, is it just a nice-to-have thing?

If it’s accepted, I have some remarks about the patch:
- 2.7 is feature-frozen, so you’ll need to target the py3k branch. (Do we need to put a big warning somewhere?) Practically, this means that “ValueError, thing” should be “ValueError(thing)”.
- Lone parens or “):” on a line are not pretty.
- Some indentation after a linebreak do not comply with PEP 8 (e.g., do
def function(argument, argument,
             indent after parens column, end):

Thanks for your submission!

----------
nosy: +merwok
stage: unit test needed -> 

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


More information about the Python-bugs-list mailing list