Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ Indexable
Class
Indexable
Lib/test/test_bytes.py:44–48 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
43
44
class
Indexable:
45
def
__init__(self, value=0):
46
self.value = value
47
def
__index__(self):
48
return
self.value
49
50
51
class
BaseBytesTest:
Callers
6
test_from_index
Method · 0.70
do_tests
Method · 0.70
test_extend
Method · 0.70
test_remove
Method · 0.70
test_append
Method · 0.70
test_insert
Method · 0.70
Calls
no outgoing calls
Tested by
6
test_from_index
Method · 0.56
do_tests
Method · 0.56
test_extend
Method · 0.56
test_remove
Method · 0.56
test_append
Method · 0.56
test_insert
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…