In <mailman.17037.1418923700.18130.python-l...@python.org> 
=?iso-8859-1?Q?Marcus_L=FCtolf?= <marcus.luet...@bluewin.ch> writes:

> >>> dir(_builtins_)
> >>> 'TTA',_add_('GGA')
> >>>abs._doc_()

These errors are due to using single underscores instead of double
underscores.  I.e. use __builtins__ instead of _builtins_.

> >>> -3  .abs()
> AttributeError: 'int' object has no attribute 'abs'

Integer objects don't have a built-in function named abs().  If you
want the absolute value of an integer, call abs directly, like so:

abs(-3)

-- 
John Gordon         Imagine what it must be like for a real medical doctor to
gor...@panix.com    watch 'House', or a real serial killer to watch 'Dexter'.

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

Reply via email to