Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3307,9 +3307,10 @@ arbitrary binary data.
bytearray.maketrans(from, to, /)

This static method returns a translation table usable for
:meth:`bytes.translate` that will map each character in *from* into the
character at the same position in *to*; *from* and *to* must both be
:term:`bytes-like objects <bytes-like object>` and have the same length.
:meth:`bytearray.translate` or :meth:`bytes.translate` that will map each
character in *from* into the character at the same position in *to*; *from*
and *to* must both be :term:`bytes-like objects <bytes-like object>` and
have the same length.

.. versionadded:: 3.1

Expand Down
Loading