MCPcopy Create free account
hub / github.com/apache/arrow / _check_index

Method _check_index

cpp/gdb_arrow.py:520–523  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

518 f"{for_evaluation(self.val)}.size()"))
519
520 def _check_index(self, index):
521 if index < 0 or index >= self._size:
522 raise IndexError(
523 f"Index {index} out of bounds (should be in [0, {self._size - 1}])")
524
525 def __len__(self):
526 return self._size

Callers 2

__getitem__Method · 0.95
eval_atMethod · 0.95

Calls 1

IndexErrorFunction · 0.85

Tested by

no test coverage detected