mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Let configparser use ordered dicts by default.
This commit is contained in:
parent
6accb988a1
commit
0663a1ed79
3 changed files with 13 additions and 1 deletions
|
@ -64,6 +64,9 @@ write-back, as will be the keys within each section.
|
|||
options within a section, and for the default values. This class does not
|
||||
support the magical interpolation behavior.
|
||||
|
||||
.. versionchanged 3.1
|
||||
The default *dict_type* is :class:`collections.OrderedDict`.
|
||||
|
||||
|
||||
.. class:: ConfigParser([defaults[, dict_type]])
|
||||
|
||||
|
@ -80,6 +83,9 @@ write-back, as will be the keys within each section.
|
|||
option names to lower case), the values ``foo %(bar)s`` and ``foo %(BAR)s`` are
|
||||
equivalent.
|
||||
|
||||
.. versionchanged 3.1
|
||||
The default *dict_type* is :class:`collections.OrderedDict`.
|
||||
|
||||
|
||||
.. class:: SafeConfigParser([defaults[, dict_type]])
|
||||
|
||||
|
@ -90,6 +96,9 @@ write-back, as will be the keys within each section.
|
|||
|
||||
.. XXX Need to explain what's safer/more predictable about it.
|
||||
|
||||
.. versionchanged 3.1
|
||||
The default *dict_type* is :class:`collections.OrderedDict`.
|
||||
|
||||
|
||||
.. exception:: NoSectionError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue