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

Function _components

Lib/test/test_fractions.py:91–92  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

89
90
91def _components(r):
92 return (r.numerator, r.denominator)
93
94def typed_approx_eq(a, b):
95 return type(a) == type(b) and (a == b or math.isclose(a, b))

Callers 8

testInitMethod · 0.85
testInitFromFloatMethod · 0.85
testInitFromDecimalMethod · 0.85
testFromStringMethod · 0.85
test_limit_intMethod · 0.85
testImmutableMethod · 0.85
testFromFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…