PyDocs

Nav

Python Runtime Services

bytearray.expandtabs

  • bytearray.expandtabs(tabsize=8)
Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.
1 Example
>>> b'01\t012\t0123\t01234'.expandtabs()
b'01      012     0123    01234'
>>> b'01\t012\t0123\t01234'.expandtabs(4)
b'01  012 0123    01234'
from the Python docs
See Also
No see-alsos for builtins/bytearray.expandtabs
0 Notes
No notes for bytearray.expandtabs