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

Method _check_index

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

Source from the content-addressed store, hash-verified

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

Callers 2

__getitem__Method · 0.95
eval_atMethod · 0.95

Calls 1

IndexErrorFunction · 0.85

Tested by

no test coverage detected