'__builtin__' vs. __builtins__
Fredrik Lundh
fredrik at pythonware.com
Mon Jun 17 16:28:37 EDT 2002
Beni Cherniavksy wrote:
> Why is the '__builtin__' module available under the __builtins__ name?
> By what's the logic one is supposed to remember it? (If I do remember
> that it's different I would still confuse which is what...)
forget about __builtins__; it's an implementation detail.
if you need to explicitly refer to stuff in the built-in namespace,
*always* import the __builtin__ module. never use __builtins__
in your code.
</F>
More information about the Python-list
mailing list