@@ -4248,9 +4248,8 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
4248
4248
value) `` pairs. Order comparisons ('<', '<=', '>=', '>') raise
4249
4249
:exc: `TypeError `.
4250
4250
4251
- Dict preserves insertion order. Note that updating key doesn't affects the
4252
- order. On the other hand, keys added after deletion are inserted to the
4253
- last. ::
4251
+ Dictionaries preserve insertion order. Note that updating a key does not
4252
+ affect the order. Keys added after deletion are inserted at the end. ::
4254
4253
4255
4254
>>> d = {"one": 1, "two": 2, "three": 3, "four": 4}
4256
4255
>>> d
@@ -4268,7 +4267,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
4268
4267
{'one': 42, 'three': 3, 'four': 4, 'two': None}
4269
4268
4270
4269
.. versionchanged :: 3.7
4271
- Dict order is guaranteed to be insertion order. This behavior was
4270
+ Dictionary order is guaranteed to be insertion order. This behavior was
4272
4271
implementation detail of CPython from 3.6.
4273
4272
4274
4273
.. seealso ::
@@ -4307,7 +4306,7 @@ support membership tests:
4307
4306
a :exc: `RuntimeError ` or fail to iterate over all entries.
4308
4307
4309
4308
.. versionchanged :: 3.7
4310
- Dict order is guaranteed to be insertion order.
4309
+ Dictionary order is guaranteed to be insertion order.
4311
4310
4312
4311
.. describe :: x in dictview
4313
4312
@@ -4721,3 +4720,4 @@ types, where they are relevant. Some of these are not reported by the
4721
4720
4722
4721
.. [5 ] To format only a tuple you should therefore provide a singleton tuple whose only
4723
4722
element is the tuple to be formatted.
4723
+
0 commit comments