File tree 3 files changed +10
-1
lines changed 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -944,6 +944,11 @@ ConfigParser Objects
944
944
.. versionchanged :: 3.5
945
945
The *converters * argument was added.
946
946
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
+
947
952
948
953
.. method :: defaults()
949
954
@@ -1325,4 +1330,3 @@ Exceptions
1325
1330
.. [1 ] Config parsers allow for heavy customization. If you are interested in
1326
1331
changing the behaviour outlined by the footnote reference, consult the
1327
1332
`Customizing Parser Behaviour `_ section.
1328
-
Original file line number Diff line number Diff line change @@ -1578,6 +1578,7 @@ Jason Tishler
1578
1578
Christian Tismer
1579
1579
Jim Tittsler
1580
1580
Frank J. Tobin
1581
+ James Tocknell
1581
1582
Bennett Todd
1582
1583
R Lindsay Todd
1583
1584
Eugene 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