MCPcopy 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

testFromNumberMethod · 0.70

Calls

no outgoing calls

Tested by 2

testFromNumberMethod · 0.56