summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorWindson yang <wiwindson@outlook.com>2018-07-05 23:09:53 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-07-05 23:09:53 (GMT)
commit3ae2e33a61f8aebbe6ce16f1030687a6e66dbb72 (patch)
tree94a53cb296ecd5d2e0e6dfe123e4dacf039e1419 /Doc/library/functions.rst
parente55ca3fdcbb8dda04f6f9fb2ccd1069aa1100cd5 (diff)
downloadcpython-3ae2e33a61f8aebbe6ce16f1030687a6e66dbb72.zip
cpython-3ae2e33a61f8aebbe6ce16f1030687a6e66dbb72.tar.gz
cpython-3ae2e33a61f8aebbe6ce16f1030687a6e66dbb72.tar.bz2
classify abs() argument type (GH-8103)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index f5427a4..6476cbd 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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)