Make Py3.x style "import builtins"

This commit is contained in:
Raymond Hettinger 2011-02-26 02:48:44 +00:00
parent 4001847a98
commit 94ca211372

View file

@ -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:: Example of simulating Python's internal lookup chain::
import __builtin__ import builtins
pylookup = ChainMap(locals(), globals(), vars(__builtin__)) pylookup = ChainMap(locals(), globals(), vars(builtins))
Example of letting user specified values take precedence over environment Example of letting user specified values take precedence over environment
variables which in turn take precedence over default values:: variables which in turn take precedence over default values::