[Python-checkins] Fix missing line from example shell session (GH-9143)
Raymond Hettinger
webhook-mailer at python.org
Mon Sep 10 21:43:11 EDT 2018
https://github.com/python/cpython/commit/2064bb6d576ff7016d59318038779f428b0f0f3f
commit: 2064bb6d576ff7016d59318038779f428b0f0f3f
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年09月10日T18:43:08-07:00
summary:
Fix missing line from example shell session (GH-9143)
files:
M Doc/library/collections.rst
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 2a83d3037277..495cfc2c234f 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