From 2737308916a1678d03ee5001db3415d809a55f34 Mon Sep 17 00:00:00 2001 From: OTheDev <116417456+OTheDev@users.noreply.github.com> Date: Wed, 5 Nov 2025 03:21:48 +0000 Subject: [PATCH 1/2] Remove second occurrence of duplicate comment --- Doc/library/stdtypes.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 97e7e08364e0bd..603836f6acac65 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4986,9 +4986,6 @@ can be used interchangeably to index the same dictionary entry. >>> a == b == c == d == e == f True - Providing keyword arguments as in the first example only works for keys that - are valid Python identifiers. Otherwise, any valid keys can be used. - Dictionaries preserve insertion order. Note that updating a key does not affect the order. Keys added after deletion are inserted at the end. :: From 3bf7ba15ebb8166c990fb311f74cee5a653553d0 Mon Sep 17 00:00:00 2001 From: OTheDev <116417456+OTheDev@users.noreply.github.com> Date: Wed, 5 Nov 2025 03:43:48 +0000 Subject: [PATCH 2/2] Remove first occurrence not second --- Doc/library/stdtypes.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 603836f6acac65..4628c5ee29b4c4 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4968,9 +4968,6 @@ can be used interchangeably to index the same dictionary entry. being added is already present, the value from the keyword argument replaces the value from the positional argument. - Providing keyword arguments as in the first example only works for keys that - are valid Python identifiers. Otherwise, any valid keys can be used. - Dictionaries compare equal if and only if they have the same ``(key, value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise :exc:`TypeError`. To illustrate dictionary creation and equality, @@ -4986,6 +4983,9 @@ can be used interchangeably to index the same dictionary entry. >>> a == b == c == d == e == f True + Providing keyword arguments as in the first example only works for keys that + are valid Python identifiers. Otherwise, any valid keys can be used. + Dictionaries preserve insertion order. Note that updating a key does not affect the order. Keys added after deletion are inserted at the end. ::