[Python-checkins] bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) (GH-11961)
Raymond Hettinger
webhook-mailer at python.org
Wed Feb 20 17:23:39 EST 2019
https://github.com/python/cpython/commit/14baf06febb9194dd76f694ec359ce94708ed861
commit: 14baf06febb9194dd76f694ec359ce94708ed861
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2019-02-20T14:23:29-08:00
summary:
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) (GH-11961)
https://bugs.python.org/issue31982
(cherry picked from commit 9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc)
Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>
files:
M Doc/library/collections.rst
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 016e56c4bd0b..7ea6601c1a44 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
More information about the Python-checkins
mailing list