summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-31 21:38:37 (GMT)
committerGeorg Brandl <georg@python.org>2009-05-31 21:38:37 (GMT)
commit751771b0d03e4277c486e66852dc773418a47181 (patch)
treea926086b48bb27633a551b46c0c86836b5648b1a /Doc
parent86425563e8177b54a5948df044462a7346e4580e (diff)
downloadcpython-751771b0d03e4277c486e66852dc773418a47181.zip
cpython-751771b0d03e4277c486e66852dc773418a47181.tar.gz
cpython-751771b0d03e4277c486e66852dc773418a47181.tar.bz2
#5675 followup: bytearray also has translate and maketrans.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 2a0d081..a526cf3 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