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

Method __getitem__

numpy/core/tests/test_protocols.py:17–18  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

15 return len(self.array)
16
17 def __getitem__(self, item):
18 return type(self)(self.array[item])
19
20 def __getattr__(self, name):
21 if name.startswith("__array_"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected