Skip to content

Commit

Permalink
bpo-31982: Improve sequence of presentation in ChainMap docs (pythonG…
Browse files Browse the repository at this point in the history
…H-11960)

https://bugs.python.org/issue31982
(cherry picked from commit 9b0c681)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
  • Loading branch information
rhettinger authored and miss-islington committed Feb 20, 2019
1 parent bb9ddee commit 15fa2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15fa2c1

Please sign in to comment.