Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ MyIndex
Class
MyIndex
Lib/test/test_float.py:38–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
pass
37
38
class
MyIndex:
39
def
__init__(self, value):
40
self.value = value
41
42
def
__index__(self):
43
return
self.value
44
45
class
MyInt:
46
def
__init__(self, value):
Callers
2
test_floatconversion
Method · 0.70
test_from_number
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_floatconversion
Method · 0.56
test_from_number
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…