mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Doc: Clarify dict equality irrespective of ordering. (GH-16266)
This commit is contained in:
parent
9ab6038fe8
commit
3171d67a6a
1 changed files with 1 additions and 1 deletions
|
@ -4381,7 +4381,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
|
|||
False
|
||||
|
||||
Dictionaries compare equal if and only if they have the same ``(key,
|
||||
value)`` pairs. Order comparisons ('<', '<=', '>=', '>') raise
|
||||
value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise
|
||||
:exc:`TypeError`.
|
||||
|
||||
Dictionaries preserve insertion order. Note that updating a key does not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue