Skip to content

Commit 1a10a6b

Browse files
wimglennrhettinger
authored andcommitted
Simplify the LastUpdatedOrderedDict example recipe (GH-13296)
1 parent 45b2f88 commit 1a10a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ original insertion position is changed and moved to the end::
11411141

11421142
def __setitem__(self, key, value):
11431143
super().__setitem__(key, value)
1144-
super().move_to_end(key)
1144+
self.move_to_end(key)
11451145

11461146
An :class:`OrderedDict` would also be useful for implementing
11471147
variants of :func:`functools.lru_cache`::

0 commit comments

Comments
 (0)