SChunk.__setitem__#
- SChunk.__setitem__(key, value)#
Set slice to
value
.- Parameters:
key¶ (int or slice) – The index of the slice to update. Note that step parameter is not honored.
value¶ (bytes-like object) – An object supporting the Buffer Protocol used to fill the slice.
- Returns:
out
- Return type:
None
- Raises:
Notes
This method can also be used to append new data if
key
.stop is greater than the SChunk nitems.