Single type for __builtins__ in Py3.0
Fredrik Lundh
fredrik at pythonware.com
Fri Sep 23 14:19:54 EDT 2005
Collin Winter wrote:
> As it currently stands, the type of the global __builtins__ differs
> depending on whether you're in the __main__ namespace (__builtins__ is
> a module) or not (its a dict). I was recently tripped up by this
> discrepancy, and googling the issue brings up half-a-dozen or so c.l.p
> threads where others have been bitten by this, too.
__builtins__ is a CPython implementation detail. why not just let it
be an implementation detail, and refrain from using it? it's not that
hard, really.
</F>
More information about the Python-list
mailing list