diff Doc/lib/libstring.tex @ 3084:91c1bb75e945 legacy-trunk

added string.translate(s, table)
author Guido van Rossum <guido@python.org>
date Wed, 13 Sep 1995 17:37:21 +0000
parents 9b7e6d9a528d
children 046888da1f44
line wrap: on
line diff
--- a/Doc/lib/libstring.tex	Wed Sep 13 17:36:35 1995 +0000
+++ b/Doc/lib/libstring.tex	Wed Sep 13 17:37:21 1995 +0000
@@ -159,6 +159,12 @@
 Convert lower case letters to upper case and vice versa.
 \end{funcdesc}
 
+\begin{funcdesc}{translate}{s, table}
+Translate the characters from \var{s} using \var{table}, which must be
+a 256-character string giving the translation for each character
+value, indexed by its ordinal.
+\end{funcdesc}
+
 \begin{funcdesc}{upper}{s}
 Convert letters to upper case.
 \end{funcdesc}