PyDocs

Nav

Python Runtime Services

bytes.isdigit

builtins

method of bytes
  • bytes.isdigit()
B.isdigit() -> bool

Return True if all characters in B are digits
and there is at least one character in B, False otherwise.
1 Example
>>> b'1234'.isdigit()
True
>>> b'1.23'.isdigit()
False
from the Python docs
See Also
No see-alsos for builtins/bytes.isdigit
0 Notes
No notes for bytes.isdigit