summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-10 19:13:02 -0700
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-09-10 19:13:02 -0700
commit6df2005b3999e6087dc524bfdf27b0dc5896d172 (patch)
tree944074fe61a38867966530c374732be359f3ac82
parent037582eb7f4d61604ef2dcc72f896117588eeb3c (diff)
downloadcpython-git-6df2005b3999e6087dc524bfdf27b0dc5896d172.tar.gz
Fix missing line from example shell session (GH-9143) (GH-9155)
(cherry picked from commit 2064bb6d576ff7016d59318038779f428b0f0f3f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
-rw-r--r--Doc/library/collections.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 2a83d30372..495cfc2c23 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -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'})