projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b2f88
)
Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296)
author
wim glenn
<wim.glenn@gmail.com>
Tue, 14 May 2019 01:10:14 +0000
(20:10 -0500)
committer
Raymond Hettinger
<rhettinger@users.noreply.github.com>
Tue, 14 May 2019 01:10:13 +0000
(18:10 -0700)
Doc/library/collections.rst
patch
|
blob
|
history
diff --git
a/Doc/library/collections.rst
b/Doc/library/collections.rst
index 64de970fec94b418e2f5337d536514d4633ecf96..e0469c208100060182a73d34084cd54fcda9b614 100644
(file)
--- 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)
- s
uper()
.move_to_end(key)
+ s
elf
.move_to_end(key)
An :class:`OrderedDict` would also be useful for implementing
variants of :func:`functools.lru_cache`::