mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
Fix missing line from example shell session (GH-9143)
This commit is contained in:
parent
ffa198c642
commit
2064bb6d57
@ -198,6 +198,7 @@ updates keys found deeper in the chain::
|
||||
>>> d['lion'] = 'orange' # update an existing key two levels down
|
||||
>>> d['snake'] = 'red' # new keys get added to the topmost dict
|
||||
>>> del d['elephant'] # remove an existing key one level down
|
||||
>>> d # display result
|
||||
DeepChainMap({'zebra': 'black', 'snake': 'red'}, {}, {'lion': 'orange'})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user