Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ea57923e
Commit
ea57923e
authored
Aug 21, 2017
by
Łukasz Langa
Committed by
GitHub
Aug 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-23835: [docs] configparser converts defaults to strings (#3176)
Title says all.
parent
44e6ad87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
Doc/library/configparser.rst
Doc/library/configparser.rst
+5
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS.d/next/Library/2017-08-21-16-06-19.bpo-23835.da_4Kz.rst
...S.d/next/Library/2017-08-21-16-06-19.bpo-23835.da_4Kz.rst
+4
-0
No files found.
Doc/library/configparser.rst
View file @
ea57923e
...
...
@@ -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.
Misc/ACKS
View file @
ea57923e
...
...
@@ -1578,6 +1578,7 @@ Jason Tishler
Christian Tismer
Jim Tittsler
Frank J. Tobin
James Tocknell
Bennett Todd
R Lindsay Todd
Eugene Toder
...
...
Misc/NEWS.d/next/Library/2017-08-21-16-06-19.bpo-23835.da_4Kz.rst
0 → 100644
View file @
ea57923e
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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment