File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -944,6 +944,11 @@ ConfigParser Objects
944944 .. versionchanged :: 3.5
945945 The *converters * argument was added.
946946
947+ .. versionchanged :: 3.7
948+ The *defaults * argument is read with :meth: `read_dict() `,
949+ providing consistent behavior across the parser: non-string
950+ keys and values are implicitly converted to strings.
951+
947952
948953 .. method :: defaults()
949954
@@ -1325,4 +1330,3 @@ Exceptions
13251330.. [1 ] Config parsers allow for heavy customization. If you are interested in
13261331 changing the behaviour outlined by the footnote reference, consult the
13271332 `Customizing Parser Behaviour `_ section.
1328-
Original file line number Diff line number Diff line change @@ -1578,6 +1578,7 @@ Jason Tishler
15781578Christian Tismer
15791579Jim Tittsler
15801580Frank J. Tobin
1581+ James Tocknell
15811582Bennett Todd
15821583R Lindsay Todd
15831584Eugene Toder
Original file line number Diff line number Diff line change 1+ configparser: reading defaults in the ``ConfigParser() `` constructor is now
2+ using ``read_dict() ``, making its behavior consistent with the rest of the
3+ parser. Non-string keys and values in the defaults dictionary are now being
4+ implicitly converted to strings. Patch by James Tocknell.
You can’t perform that action at this time.
0 commit comments