PyDocs

Nav

Python Runtime Services

bytes.rstrip

builtins

method of bytes
  • bytes.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/bytes.rstrip
0 Notes
No notes for bytes.rstrip