PyDocs

Nav

Python Runtime Services

bytes.maketrans

builtins

staticmethod of bytes · Added in 3.1
  • bytes.maketrans(from, to, /)
Return a translation table usable for the bytes or bytearray translate method.

The returned table will be one where each byte in frm is mapped to
the byte at the same position in to.

The bytes objects frm and to must be of the same length.
0 Examples
No examples for builtins/bytes.maketrans.
See Also
No see-alsos for builtins/bytes.maketrans
0 Notes
No notes for bytes.maketrans