Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
91
def
_components(r):
92
return
(r.numerator, r.denominator)
93
94
def
typed_approx_eq(a, b):
95
return
type(a) == type(b) and (a == b or math.isclose(a, b))
Callers
8
testInit
Method · 0.85
testInitFromFloat
Method · 0.85
testInitFromDecimal
Method · 0.85
testInitFromIntegerRatio
Method · 0.85
testFromString
Method · 0.85
test_limit_int
Method · 0.85
testImmutable
Method · 0.85
testFromFloat
Method · 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…