'__builtin__' vs. __builtins__
Aahz
aahz at pythoncraft.com
Mon Jun 17 16:34:46 EDT 2002
In article <Pine.GSO.4.33.0206171543060.8570-100000 at techst02.technion.ac.il>,
Beni Cherniavksy <cben at tx.technion.ac.il> 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...)
My paraphrase of what Tim Peters said the last time this came up:
Main reason is to avoid getting flooded with output when calling
``vars()`` in interactive mode.
(From my upcoming OSCON tutorial.)
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list
mailing list