[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

Ben Griffin report at bugs.python.org
Thu Mar 5 06:11:19 EST 2020


Ben Griffin <ben at redsnapper.net> added the comment:

Having looked at the code, I believe that it is best NOT to interfere with the 'default_section' value of the class, as it is used as a proxy to _defaults, whereas the section parameter of get() is easily extended.

The actual changes are all to the method _unify_values, and it is trivial to extend that method to allow for multiple dictionaries to be passed to _ChainMap.

This is what I did in PR-18791

----------
type:  -> enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39860>
_______________________________________


More information about the Python-bugs-list mailing list