added string.translate(s, table)

This commit is contained in:
Guido van Rossum 1995-09-13 17:37:21 +00:00
parent 1e150618a3
commit f65f278b8f
2 changed files with 12 additions and 0 deletions

View 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}

View 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}