From: Raymond Hettinger Date: Wed, 20 Feb 2019 21:49:23 +0000 (-0800) Subject: bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) X-Git-Tag: v3.8.0a2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc;p=thirdparty%2FPython%2Fcpython.git bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) https://bugs.python.org/issue31982 --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 3fa8b32ff006..bde7b6e90082 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