summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-09-13 17:37:21 (GMT)
committerGuido van Rossum <guido@python.org>1995-09-13 17:37:21 (GMT)
commitf65f278b8f63588b27cbc819c40f6012488c0390 (patch)
tree69fd672cb46ae4e84d7f66b1a7865151efefd5cf /Doc
parent1e150618a3c0716b48db346a5d315298e3d7d8b8 (diff)
downloadcpython-f65f278b8f63588b27cbc819c40f6012488c0390.zip
cpython-f65f278b8f63588b27cbc819c40f6012488c0390.tar.gz
cpython-f65f278b8f63588b27cbc819c40f6012488c0390.tar.bz2
added string.translate(s, table)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstring.tex6
-rw-r--r--Doc/libstring.tex6
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 17717df..ac6dc55 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -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}
diff --git a/Doc/libstring.tex b/Doc/libstring.tex
index 17717df..ac6dc55 100644
--- a/Doc/libstring.tex
+++ b/Doc/libstring.tex
@@ -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}