@@ -855,7 +855,7 @@ interpolation if an option used is not defined elsewhere. ::
855
855
ConfigParser Objects
856
856
--------------------
857
857
858
- .. class :: ConfigParser(defaults=None, dict_type=collections.OrderedDict , allow_no_value=False, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.DEFAULTSECT, interpolation=BasicInterpolation(), converters={})
858
+ .. class :: ConfigParser(defaults=None, dict_type=dict , allow_no_value=False, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.DEFAULTSECT, interpolation=BasicInterpolation(), converters={})
859
859
860
860
The main configuration parser. When *defaults * is given, it is initialized
861
861
into the dictionary of intrinsic defaults. When *dict_type * is given, it
@@ -917,6 +917,9 @@ ConfigParser Objects
917
917
providing consistent behavior across the parser: non-string
918
918
keys and values are implicitly converted to strings.
919
919
920
+ .. versionchanged :: 3.7
921
+ The default *dict_type * is :class: `dict `, since it now preserves
922
+ insertion order.
920
923
921
924
.. method :: defaults()
922
925
@@ -1178,7 +1181,7 @@ ConfigParser Objects
1178
1181
RawConfigParser Objects
1179
1182
-----------------------
1180
1183
1181
- .. class :: RawConfigParser(defaults=None, dict_type=collections.OrderedDict , \
1184
+ .. class :: RawConfigParser(defaults=None, dict_type=dict , \
1182
1185
allow_no_value=False, *, delimiters=('=', ':'), \
1183
1186
comment_prefixes=('#', ';'), \
1184
1187
inline_comment_prefixes=None, strict=True, \
@@ -1191,6 +1194,10 @@ RawConfigParser Objects
1191
1194
names, and values via its unsafe ``add_section `` and ``set `` methods,
1192
1195
as well as the legacy ``defaults= `` keyword argument handling.
1193
1196
1197
+ .. versionchanged :: 3.7
1198
+ The default *dict_type * is :class: `dict `, since it now preserves
1199
+ insertion order.
1200
+
1194
1201
.. note ::
1195
1202
Consider using :class: `ConfigParser ` instead which checks types of
1196
1203
the values to be stored internally. If you don't want interpolation, you
0 commit comments