8000 bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) · python/cpython@9b0c681 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b0c681

Browse files
rhettingermiss-islington
authored andcommitted
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960)
https://bugs.python.org/issue31982
1 parent d8b9e1f commit 9b0c681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ contexts::
163163
e.maps[-1] # Root context -- like Python's globals()
164164
e.parents # Enclosing context chain -- like Python's nonlocals
165165

166-
d['x'] # Get first key in the chain of contexts
167166
d['x'] = 1 # Set value in current context
167+
d['x'] # Get first key in the chain of contexts
168168
del d['x'] # Delete from current context
169169
list(d) # All nested values
170170
k in d # Check all nested values

0 commit comments

Comments
 (0)
0