Commit 1a10a6b9 authored by wim glenn's avatar wim glenn Committed by Raymond Hettinger

Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296)

parent 45b2f889
......@@ -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`::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment