From: Raymond Hettinger Date: Sat, 26 Feb 2011 02:48:44 +0000 (+0000) Subject: Make Py3.x style "import builtins" X-Git-Tag: v3.3.0a1~3054 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94ca211372ae2f8f5f7e329c443657f73931336e;p=python Make Py3.x style "import builtins" --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index f409536b6f..b6ab342555 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -95,8 +95,8 @@ The class can be used to simulate nested scopes and is useful in templating. Example of simulating Python's internal lookup chain:: - import __builtin__ - pylookup = ChainMap(locals(), globals(), vars(__builtin__)) + import builtins + pylookup = ChainMap(locals(), globals(), vars(builtins)) Example of letting user specified values take precedence over environment variables which in turn take precedence over default values::