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

Class MyIndex

Lib/test/test_random.py:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class MyIndex:
21 def __init__(self, value):
22 self.value = value
23
24 def __index__(self):
25 return self.value
26
27
28class TestBasicOps:

Callers 5

test_choicesMethod · 0.70
test_randrange_stepMethod · 0.70
test_randrange_indexMethod · 0.70
test_randintMethod · 0.70
test_getrandbitsMethod · 0.70

Calls

no outgoing calls

Tested by 5

test_choicesMethod · 0.56
test_randrange_stepMethod · 0.56
test_randrange_indexMethod · 0.56
test_randintMethod · 0.56
test_getrandbitsMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…