PyDocs

Nav

Python Runtime Services

bytes.rpartition

builtins

method of bytes
  • bytes.rpartition(sep, /)
Partition the bytes into three parts using the given separator.

This will search for the separator sep in the bytes, starting at the
end.  If the separator is found, returns a 3-tuple containing the
part before the separator, the separator itself, and the part after
it.

If the separator is not found, returns a 3-tuple containing two
empty bytes objects and the original bytes object.
0 Examples
No examples for builtins/bytes.rpartition.
See Also
No see-alsos for builtins/bytes.rpartition
0 Notes
No notes for bytes.rpartition