Browse Source

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

pull/12607/head
wim glenn 7 years ago
committed by Raymond Hettinger
parent
commit
1a10a6b980
  1. 2
      Doc/library/collections.rst

2
Doc/library/collections.rst

@ -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`::

Loading…
Cancel
Save