__builtin__ quote

James Stroud jstroud at mbi.ucla.edu
Tue Jan 6 09:56:36 CET 2009

Steven Woody wrote:
> On Tue, Jan 6, 2009 at 4:42 PM, James Stroud <jstroud at 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


More information about the Python-list mailing list