aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorwim glenn <wim.glenn@gmail.com>2019-05-13 20:10:14 -0500
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2019-05-13 18:10:13 -0700
commit1a10a6b980dbddb59a054f273dbd97ea5e7ccda4 (patch)
treec0fe5ed40d7e538ff80fd9df8e5e0a6da50c9e94 /Doc
parentbpo-34424: Handle different policy.linesep lengths correctly. (#8803) (diff)
downloadcpython-1a10a6b980dbddb59a054f273dbd97ea5e7ccda4.tar.gz
cpython-1a10a6b980dbddb59a054f273dbd97ea5e7ccda4.tar.bz2
cpython-1a10a6b980dbddb59a054f273dbd97ea5e7ccda4.zip
Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 64de970fec9..e0469c20810 100644
--- a/Doc/library/collections.rst
+++ b/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`::