classify abs() argument type (GH-8103)

This commit is contained in:
Windson yang 2018-07-06 07:09:53 +08:00 committed by Raymond Hettinger
parent e55ca3fdcb
commit 3ae2e33a61
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ are always available. They are listed here in alphabetical order.
Return the absolute value of a number. The argument may be an
integer or a floating point number. If the argument is a complex number, its
magnitude is returned.
magnitude is returned. If *x* defines :meth:`__abs__`,
``abs(x)`` returns ``x.__abs__()``.
.. function:: all(iterable)