MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / __getitem__

Method __getitem__

src/pointers/calloc.py:102–103  ·  view source on GitHub ↗
(self, index: int)

Source from the content-addressed store, hash-verified

100 yield self + i
101
102 def __getitem__(self, index: int) -> "AllocatedArrayPointer[T]":
103 return self._get_chunk_at(index)
104
105 def __setitem__(self, index: int, value: T) -> None:
106 chunk = self._get_chunk_at(index)

Callers

nothing calls this directly

Calls 1

_get_chunk_atMethod · 0.95

Tested by

no test coverage detected