summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-02-20 21:49:23 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-20 21:49:23 (GMT)
commit9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc (patch)
treeb5e2b240eec48006f3bffcf326c8fd7a79b4eb8f /Doc
parentd8b9e1fc2e45d2bc3f4a9737c375f2adb8a8c7de (diff)
downloadcpython-9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc.zip
cpython-9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc.tar.gz
cpython-9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc.tar.bz2
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960)
https://bugs.python.org/issue31982
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 3fa8b32..bde7b6e 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -163,8 +163,8 @@ contexts::
e.maps[-1] # Root context -- like Python's globals()
e.parents # Enclosing context chain -- like Python's nonlocals
- d['x'] # Get first key in the chain of contexts
d['x'] = 1 # Set value in current context
+ d['x'] # Get first key in the chain of contexts
del d['x'] # Delete from current context
list(d) # All nested values
k in d # Check all nested values