Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __index__
Method
__index__
Lib/test/test_array.py:1416–1417 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1414
def
__init__(self, num):
1415
self._num = num
1416
def
__index__(self):
1417
return
self._num
1418
def
__int__(self):
1419
return
self._num
1420
def
__sub__(self, other):
Callers
2
__init__
Method · 0.45
wait
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected