MCPcopy Create free account
hub / github.com/numpy/numpy / __getitem__

Method __getitem__

numpy/lib/user_array.py:48–49  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

46 return len(self.array)
47
48 def __getitem__(self, index):
49 return self._rc(self.array[index])
50
51 def __setitem__(self, index, value):
52 self.array[index] = asarray(value, self.dtype)

Callers

nothing calls this directly

Calls 1

_rcMethod · 0.95

Tested by

no test coverage detected