PyDocs

Nav

Python Runtime Services

bytearray.rstrip

  • bytearray.rstrip(bytes=None, /)
Strip trailing bytes contained in the argument.

If the argument is omitted or None, strip trailing ASCII whitespace.
1 Example
>>> b'   spacious   '.rstrip()
b'   spacious'
>>> b'mississippi'.rstrip(b'ipz')
b'mississ'
from the Python docs
See Also
No see-alsos for builtins/bytearray.rstrip
0 Notes
No notes for bytearray.rstrip