SChunk.__getitem__#
- SChunk.__getitem__(item)#
Get a slice from the SChunk.
- Parameters:
item¶ (int or slice) – The index for the slice. Note that the step parameter is not honored.
- Returns:
out – The decompressed slice in form of a Python str / bytes object.
- Return type:
str/bytes
- Raises:
ValueError – If the size to get is negative. If
item
.start is greater or equal than the SChunk nitemsRunTimeError – If some problem was detected.
IndexError – If step is not 1.
See also