Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _isfinite
Function
_isfinite
Lib/statistics.py:1558–1562 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
1556
1557
1558
def
_isfinite(x):
1559
try
:
1560
return
x.is_finite()
# Likely a Decimal.
1561
except
AttributeError:
1562
return
math.isfinite(x)
# Coerces to float first.
1563
1564
1565
def
_coerce(T, S):
Callers
4
_sum
Function · 0.85
_ss
Function · 0.85
_exact_ratio
Function · 0.85
choices
Method · 0.85
Calls
1
is_finite
Method · 0.45
Tested by
no test coverage detected