MCPcopy Index your code
hub / github.com/python/cpython / _isfinite

Function _isfinite

Lib/statistics.py:1558–1562  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1556
1557
1558def _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
1565def _coerce(T, S):

Callers 4

_sumFunction · 0.85
_ssFunction · 0.85
_exact_ratioFunction · 0.85
choicesMethod · 0.85

Calls 1

is_finiteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…