mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
classify abs() argument type (GH-8103)
This commit is contained in:
parent
e55ca3fdcb
commit
3ae2e33a61
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue