summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libstring.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-11 16:03:30 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-11 16:03:30 (GMT)
commita3eebe60dc7ad854020ae839270f35b137c2893d (patch)
tree6405e0928bc0895a5fd017d46ff982ce3b468132 /Doc/lib/libstring.tex
parent08d6be48714d52dcc277c9b8e16ca51cb229dcc7 (diff)
downloadcpython-a3eebe60dc7ad854020ae839270f35b137c2893d.zip
cpython-a3eebe60dc7ad854020ae839270f35b137c2893d.tar.gz
cpython-a3eebe60dc7ad854020ae839270f35b137c2893d.tar.bz2
Add warning about use of lowercase/uppercase with maketrans().
Diffstat (limited to 'Doc/lib/libstring.tex')
-rw-r--r--Doc/lib/libstring.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 3939229..7d6f4bd 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -144,6 +144,11 @@ Return a translation table suitable for passing to
\function{translate()} or \function{regex.compile()}, that will map
each character in \var{from} into the character at the same position
in \var{to}; \var{from} and \var{to} must have the same length.
+
+\strong{Warning:} don't use strings derived from \code{lowercase} and
+\code{uppercase} as arguments; in some locales, these don't have the
+same length. For case conversions, always use \function{lower()} and
+\function{upper()}.
\end{funcdesc}
\begin{funcdesc}{split}{s\optional{, sep\optional{, maxsplit}}}