]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added string.translate(s, table)
authorGuido van Rossum <guido@python.org>
Wed, 13 Sep 1995 17:37:21 +0000 (17:37 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 13 Sep 1995 17:37:21 +0000 (17:37 +0000)
Doc/lib/libstring.tex
Doc/libstring.tex

index 17717dfd256ce5bc441a9fe39ade7503bd269d0d..ac6dc557dd647572e2a42e8f6600ec6779903a22 100644 (file)
@@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string
 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}
index 17717dfd256ce5bc441a9fe39ade7503bd269d0d..ac6dc557dd647572e2a42e8f6600ec6779903a22 100644 (file)
@@ -159,6 +159,12 @@ Remove leading and trailing whitespace from the string
 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}