[issue6751] Default return value in ConfigParser

Juan Javier report at bugs.python.org
Sat Aug 7 12:06:57 CEST 2010


Juan Javier <jjdominguezm at gmail.com> added the comment:

I would like the method to have the exact same behavior as before if the "default" argument is not present, and return the given default value when "deafult" argument is present.

If you simply add a "default" keyword, it will always be present and you wouldn't know if the user wants the exception thrown or the default value returned.

Do you know how to program this using a "default" keyword argument?

----------

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


More information about the Python-bugs-list mailing list