PyDocs

Nav

Python Runtime Services

bytes.lstrip

builtins

method of bytes
  • bytes.lstrip(bytes=None, /)
Strip leading bytes contained in the argument.

If the argument is omitted or None, strip leading  ASCII whitespace.
1 Example
>>> b'   spacious   '.lstrip()
b'spacious   '
>>> b'www.example.com'.lstrip(b'cmowz.')
b'example.com'
from the Python docs
See Also
No see-alsos for builtins/bytes.lstrip
0 Notes
No notes for bytes.lstrip