From 7cb47d1ce36250e49a941c36b44b7ec75fd0d515 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 20 Feb 2019 13:40:44 -0800 Subject: [PATCH] Change order of examples to something that makes sense sequentially --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 3fa8b32ff006f53..bde7b6e90082de6 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -163,8 +163,8 @@ contexts:: e.maps[-1] # Root context -- like Python's globals() 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'] # Get first key in the chain of contexts del d['x'] # Delete from current context list(d) # All nested values k in d # Check all nested values