From: Georg Brandl Date: Sun, 31 May 2009 21:38:37 +0000 (+0000) Subject: #5675 followup: bytearray also has translate and maketrans. X-Git-Tag: v3.1rc2~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=751771b0d03e4277c486e66852dc773418a47181;p=python #5675 followup: bytearray also has translate and maketrans. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 2a0d08150a..a526cf31c7 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1541,6 +1541,7 @@ The maketrans and translate methods differ in semantics from the versions available on strings: .. method:: bytes.translate(table[, delete]) + bytearray.translate(table[, delete]) Return a copy of the bytes or bytearray object where all bytes occurring in the optional argument *delete* are removed, and the remaining bytes have been @@ -1557,6 +1558,7 @@ available on strings: .. staticmethod:: bytes.maketrans(from, to) + 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