Steven Woody wrote:
On Tue, Jan 6, 2009 at 4:42 PM, James Stroud <jstr...@mbi.ucla.edu> wrote:
py> import __builtin__
py> __builtin__.abs is abs
   True

Does that mean someone did 'import * from __builtin__'  when python startup?

In terms of the exact implementation of the cPython interpreter, I don't know. But the interpreter behaves as if someone did just that. So there is nothing wrong with thinking of it this way if it helps you understand the interpreter.

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA  90095

http://www.jamesstroud.com
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to