Skip to content

Commit 16eb623

Browse files
Doc: Clarify dict equality irrespective of ordering. (GH-16266)
(cherry picked from commit 3171d67) Co-authored-by: toonarmycaptain <[email protected]>
1 parent 6612a4f commit 16eb623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4356,7 +4356,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
43564356
False
43574357

43584358
Dictionaries compare equal if and only if they have the same ``(key,
4359-
value)`` pairs. Order comparisons ('<', '<=', '>=', '>') raise
4359+
value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise
43604360
:exc:`TypeError`.
43614361

43624362
Dictionaries preserve insertion order. Note that updating a key does not

0 commit comments

Comments
 (0)