Skip to content

Commit

Permalink
bpo-23835: [docs] configparser converts defaults to strings (python#3176
Browse files Browse the repository at this point in the history
)

Title says all.
  • Loading branch information
ambv committed Aug 21, 2017
1 parent 44e6ad8 commit ea57923
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,11 @@ ConfigParser Objects
.. versionchanged:: 3.5
The *converters* argument was added.

.. versionchanged:: 3.7
The *defaults* argument is read with :meth:`read_dict()`,
providing consistent behavior across the parser: non-string
keys and values are implicitly converted to strings.


.. method:: defaults()

Expand Down Expand Up @@ -1325,4 +1330,3 @@ Exceptions
.. [1] Config parsers allow for heavy customization. If you are interested in
changing the behaviour outlined by the footnote reference, consult the
`Customizing Parser Behaviour`_ section.
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,7 @@ Jason Tishler
Christian Tismer
Jim Tittsler
Frank J. Tobin
James Tocknell
Bennett Todd
R Lindsay Todd
Eugene Toder
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
configparser: reading defaults in the ``ConfigParser()`` constructor is now
using ``read_dict()``, making its behavior consistent with the rest of the
parser. Non-string keys and values in the defaults dictionary are now being
implicitly converted to strings. Patch by James Tocknell.

0 comments on commit ea57923

Please sign in to comment.