PyDocs

Nav

Python Runtime Services

bytearray.count

  • bytearray.count(sub[, start[, end]])
Return the number of non-overlapping occurrences of subsection 'sub' in bytes B[start:end].

start
  Optional start position. Default: start of the bytes.
end
  Optional stop position. Default: end of the bytes.
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.count.
See Also
No see-alsos for builtins/bytearray.count
0 Notes
No notes for bytearray.count