Skip to content

Commit 3bf7ba1

Browse files
committed
Remove first occurrence not second
1 parent 2737308 commit 3bf7ba1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/stdtypes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4968,9 +4968,6 @@ can be used interchangeably to index the same dictionary entry.
49684968
being added is already present, the value from the keyword argument
49694969
replaces the value from the positional argument.
49704970

4971-
Providing keyword arguments as in the first example only works for keys that
4972-
are valid Python identifiers. Otherwise, any valid keys can be used.
4973-
49744971
Dictionaries compare equal if and only if they have the same ``(key,
49754972
value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise
49764973
:exc:`TypeError`. To illustrate dictionary creation and equality,
@@ -4986,6 +4983,9 @@ can be used interchangeably to index the same dictionary entry.
49864983
>>> a == b == c == d == e == f
49874984
True
49884985

4986+
Providing keyword arguments as in the first example only works for keys that
4987+
are valid Python identifiers. Otherwise, any valid keys can be used.
4988+
49894989
Dictionaries preserve insertion order. Note that updating a key does not
49904990
affect the order. Keys added after deletion are inserted at the end. ::
49914991

0 commit comments

Comments
 (0)