PyDocs

Nav

Python Runtime Services

bytearray.take_bytes

builtins

method of bytearray · Added in 3.15
  • bytearray.take_bytes(n=None, /)
Take *n* bytes from the bytearray and return them as a bytes object.

n
  Bytes to take, negative indexes from end. None indicates all bytes.

The official docs include a CPython implementation detail for this entry.

0 Examples
No examples for builtins/bytearray.take_bytes.
See Also
No see-alsos for builtins/bytearray.take_bytes
0 Notes
No notes for bytearray.take_bytes