]> granicus.if.org Git - python/commitdiff
Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296)
authorwim glenn <wim.glenn@gmail.com>
Tue, 14 May 2019 01:10:14 +0000 (20:10 -0500)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Tue, 14 May 2019 01:10:13 +0000 (18:10 -0700)
Doc/library/collections.rst

index 64de970fec94b418e2f5337d536514d4633ecf96..e0469c208100060182a73d34084cd54fcda9b614 100644 (file)
@@ -1141,7 +1141,7 @@ original insertion position is changed and moved to the end::
 
         def __setitem__(self, key, value):
             super().__setitem__(key, value)
-            super().move_to_end(key)
+            self.move_to_end(key)
 
 An :class:`OrderedDict` would also be useful for implementing
 variants of :func:`functools.lru_cache`::