mirror of https://github.com/python/cpython
classify abs() argument type (GH-8103)
This commit is contained in:
parent
e55ca3fdcb
commit
3ae2e33a61
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue