Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ A
Class
A
Lib/test/test_fractions.py:379–380 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
377
378
# as_integer_ratio not defined in a class
379
class
A:
380
pass
381
a = A()
382
a.as_integer_ratio =
lambda
: (9, 5)
383
self.assertEqual((9, 5), _components(F(a)))
Callers
2
testInitFromIntegerRatio
Method · 0.70
testFromNumber
Method · 0.70
Calls
no outgoing calls
Tested by
2
testInitFromIntegerRatio
Method · 0.56
testFromNumber
Method · 0.56