__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.

</F>

Ok, I agree. I was an idiot. :-) Probably programmers should not use __builtins__ at all.
It is still interesting that the same magic identifier is bound to different things. :-)



-- _________________________________________________________________ Laszlo Nagy web: http://designasign.biz IT Consultant mail: [EMAIL PROTECTED]

                Python forever!


-- http://mail.python.org/mailman/listinfo/python-list

Reply via email to