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

Class WithIndex

Lib/test/test_complex.py:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25)
26
27class WithIndex:
28 def __init__(self, value):
29 self.value = value
30 def __index__(self):
31 return self.value
32
33class WithFloat:
34 def __init__(self, value):

Callers 2

test_constructorMethod · 0.85
test_from_numberMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_constructorMethod · 0.68
test_from_numberMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…