Code
Hub
Trending
Following
Digest
Agents
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ abs
Function
abs
Lib/operator.py:79–81 ·
view source on GitHub ↗
Same as abs(a).
(a)
Source
from the content-addressed store, hash-verified
77
# Mathematical/Bitwise Operations *********************************************#
78
79
def
abs(a):
80
"Same as abs(a)."
81
return
_abs(a)
82
83
def
add(a, b):
84
"Same as a + b."
Callers
15
Int2AP
Function · 0.85
currency
Function · 0.85
__new__
Method · 0.85
plural
Method · 0.85
repr_int
Method · 0.85
triangular_kernel
Function · 0.85
f_inv
Function · 0.85
distance
Method · 0.85
circle
Method · 0.85
_polytrafo
Method · 0.85
_undogoto
Method · 0.85
_rotate
Method · 0.85
Calls
1
_abs
Function · 0.85
Tested by
15
testApproximatePi
Method · 0.68
testApproximateCos1
Method · 0.68
test_math
Method · 0.68
foo
Method · 0.68
foo
Method · 0.68
test_basic_inheritance
Method · 0.68
__eq__
Method · 0.68
test_computations
Method · 0.68
test_utcnow
Method · 0.68
test_utc_offset_out_of_bounds
Method · 0.68
test_tzinfo_now
Method · 0.68
truediv
Function · 0.68