__builtin__ quote

James Stroud jstroud at mbi.ucla.edu
Tue Jan 6 09:42:53 CET 2009


Steven Woody wrote:
> Hi,
> 
> I am a new leaner and I get a question:  abs() is a member of
> __builtin__ module, but why should I use abs() rather than
> __builtin__.abs() ? Thanks.

It saves typing.

This might help your understanding:

py> import __builtin__
py> __builtin__.abs is abs
     True


James


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

http://www.jamesstroud.com



More information about the Python-list mailing list