Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
95
def
index(a):
96
"Same as a.__index__()."
97
return
a.__index__()
98
99
def
inv(a):
100
"Same as ~a."
Callers
4
test_index
Method · 0.85
test_sequence_index
Method · 0.85
test_index_empty
Method · 0.85
test_index_data
Method · 0.85
Calls
1
__index__
Method · 0.45
Tested by
4
test_index
Method · 0.68
test_sequence_index
Method · 0.68
test_index_empty
Method · 0.68
test_index_data
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…