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

Function index

Lib/operator.py:95–97  ·  view source on GitHub ↗

Same as a.__index__().

(a)

Source from the content-addressed store, hash-verified

93 return a // b
94
95def index(a):
96 "Same as a.__index__()."
97 return a.__index__()
98
99def inv(a):
100 "Same as ~a."

Callers 4

test_indexMethod · 0.85
test_sequence_indexMethod · 0.85
test_index_emptyMethod · 0.85
test_index_dataMethod · 0.85

Calls 1

__index__Method · 0.45

Tested by 4

test_indexMethod · 0.68
test_sequence_indexMethod · 0.68
test_index_emptyMethod · 0.68
test_index_dataMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…