[Python-checkins] r73086 - python/branches/py3k/Doc/library/stdtypes.rst
georg.brandl
python-checkins at python.org
Sun May 31 23:38:37 CEST 2009
Author: georg.brandl
Date: Sun May 31 23:38:37 2009
New Revision: 73086
Log:
#5675 followup: bytearray also has translate and maketrans.
Modified:
python/branches/py3k/Doc/library/stdtypes.rst
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst (original)
+++ python/branches/py3k/Doc/library/stdtypes.rst Sun May 31 23:38:37 2009
@@ -1541,6 +1541,7 @@
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 @@
.. 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
More information about the Python-checkins
mailing list