Noob confused by ConfigParser defaults

Tim Chase python.list at tim.thechases.com
Mon Feb 20 13:10:37 EST 2017


On 2017-02-20 10:45, Peter Otten wrote:
> value = parser.get("section-1", "option-1", fallback="default
> value") 

Huh.  Do you remember when this was added?  I see it in the 3.x docs,
but not the 2.x docs.  I remember writing my own wrappers multiple
times for exactly these purposes, even to the point of opening an
issue in the hopes of getting something of the like included

https://lists.gt.net/python/bugs/827378?do=post_view_threaded

So I'm glad to see it arrived; just curious when that happened
officially.

-tkc







More information about the Python-list mailing list