mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-23835: [docs] configparser converts defaults to strings (#3176)
Title says all.
This commit is contained in:
parent
44e6ad8734
commit
ea57923e89
3 changed files with 10 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue