mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960)
https://bugs.python.org/issue31982
This commit is contained in:
parent
d8b9e1fc2e
commit
9b0c681e2d
1 changed files with 1 additions and 1 deletions
|
|
@ -163,8 +163,8 @@ contexts::
|
||||||
e.maps[-1] # Root context -- like Python's globals()
|
e.maps[-1] # Root context -- like Python's globals()
|
||||||
e.parents # Enclosing context chain -- like Python's nonlocals
|
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'] = 1 # Set value in current context
|
||||||
|
d['x'] # Get first key in the chain of contexts
|
||||||
del d['x'] # Delete from current context
|
del d['x'] # Delete from current context
|
||||||
list(d) # All nested values
|
list(d) # All nested values
|
||||||
k in d # Check all nested values
|
k in d # Check all nested values
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue