Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
nothing calls this directly
Calls
1
__index__
Method · 0.45
Tested by
no test coverage detected