We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36b0a3 commit 7079b30Copy full SHA for 7079b30
Doc/library/functions.rst
@@ -43,8 +43,8 @@ are always available. They are listed here in alphabetical order.
43
.. function:: abs(x)
44
45
Return the absolute value of a number. The argument may be an
46
- integer or a floating point number. If the argument is a complex number, its
47
- magnitude is returned.
+ integer or a floating point number, If *x* defines :meth:`__abs__`,
+ ``abs(x)`` returns ``x.__abs__()``. If the argument is a complex number, its magnitude is returned.
48
49
50
.. function:: all(iterable)
0 commit comments