[Python-checkins] r88630 - python/branches/py3k/Doc/library/collections.rst
raymond.hettinger
python-checkins at python.org
Sat Feb 26 03:48:45 CET 2011
Author: raymond.hettinger
Date: Sat Feb 26 03:48:44 2011
New Revision: 88630
Log:
Make Py3.x style "import builtins"
Modified:
python/branches/py3k/Doc/library/collections.rst
Modified: python/branches/py3k/Doc/library/collections.rst
==============================================================================
--- python/branches/py3k/Doc/library/collections.rst (original)
+++ python/branches/py3k/Doc/library/collections.rst Sat Feb 26 03:48:44 2011
@@ -95,8 +95,8 @@
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::
More information about the Python-checkins
mailing list