python namespace question

Steven D'Aprano steve-REMOVE-THIS at cybersource.com.au
Wed Jul 14 00:29:00 EDT 2010


On Tue, 13 Jul 2010 20:52:31 -0700, Chris Rebert wrote:

> The built-ins is the
> namespace of last resort; it's the last one to be consulted when trying
> to resolve a name in Python. You can inspect it via __builtins__

Avoid __builtins__ as it is an implementation detail. The difference 
between __builtins__ and __builtin__ is one of the more confusing corners 
of Python, but the correct one to use is __builtin__.


http://docs.python.org/library/__builtin__.html




-- 
Steven



More information about the Python-list mailing list