PyDocs

Nav

Python Runtime Services

bytearray.rfind

  • bytearray.rfind(sub[, start[, end]])
Return the highest index in B where subsection 'sub' is found, such that 'sub' is contained within B[start:end].

  start
    Optional start position. Default: start of the bytes.
  end
    Optional stop position. Default: end of the bytes.

Return -1 on failure.
Changed in 3.3
  • 3.3: Also accept an integer in the range 0 to 255 as the subsequence.
0 Examples
No examples for builtins/bytearray.rfind.
See Also
No see-alsos for builtins/bytearray.rfind
0 Notes
No notes for bytearray.rfind