[Python-checkins] Fix missing line from example shell session (GH-9143) (GH-9156)
Raymond Hettinger
webhook-mailer at python.org
Mon Sep 10 22:13:26 EDT 2018
https://github.com/python/cpython/commit/3cb90d1a0b32dc293de8adb52b69cdc947a18c46
commit: 3cb90d1a0b32dc293de8adb52b69cdc947a18c46
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2018-09-10T19:13:23-07:00
summary:
Fix missing line from example shell session (GH-9143) (GH-9156)
(cherry picked from commit 2064bb6d576ff7016d59318038779f428b0f0f3f)
Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>
files:
M Doc/library/collections.rst
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 82ba05737413..25687348d16d 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'})
More information about the Python-checkins
mailing list