Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __getitem__
Method
__getitem__
Lib/test/pickletester.py:174–178 ·
view source on GitHub ↗
(self, idx)
Source
from the content-addressed store, hash-verified
172
self.array = _testbuffer.ndarray(*args, **kwargs)
173
174
def
__getitem__(self, idx):
175
cls = type(self)
176
new = cls.__new__(cls)
177
new.array = self.array[idx]
178
return
new
179
180
@property
181
def
readonly(self):
Callers
nothing calls this directly
Calls
1
__new__
Method · 0.45
Tested by
no test coverage detected