__builtins__ (plural form) is a CPython implementation detail.
if you want to access the __builtin__ module, import it as usual:
import __builtin__
f = __builtin__.open(...)
if you're interested in CPython implementation details, study the CPython
source code.
Ok, I agree. I was an idio
Laszlo Zsolt Nagy wrote:
> Given this module "test.py":
>
> print type(__builtins__)
>
> I ran into a wreid thing.
>
> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> __builtins__
>
> >>>