Closed whitequark closed 2 days ago
These lines:
should probably be something like:
shape = self.__layout.elem_shape
width = Shape.cast(self.__layout.elem_shape).width
if isinstance(key, int):
if key < 0:
key += self.__layout._length
value = self.__target[key * width:key * width + width]
else:
value = self.__target.word_select(key, width)
Actually that has the exact same problem as word_select
... which we should probably improve the diagnostic for.
To reproduce: