Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
20
class
MyIndex:
21
def
__init__(self, value):
22
self.value = value
23
24
def
__index__(self):
25
return
self.value
26
27
28
class
TestBasicOps:
Callers
5
test_choices
Method · 0.70
test_randrange_step
Method · 0.70
test_randrange_index
Method · 0.70
test_randint
Method · 0.70
test_getrandbits
Method · 0.70
Calls
no outgoing calls
Tested by
5
test_choices
Method · 0.56
test_randrange_step
Method · 0.56
test_randrange_index
Method · 0.56
test_randint
Method · 0.56
test_getrandbits
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…