diff options
author | Raymond Hettinger <python@rcn.com> | 2003-07-16 05:11:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-07-16 05:11:27 (GMT) |
commit | 46f681cc0777024c7259764b0eefac472d75ac97 (patch) | |
tree | 633dbf9cf443d4dffd307ee59a336ca129fa42e2 /Doc/lib/libstring.tex | |
parent | 43d790c087be582fc9ae61e382aee9eaafd79738 (diff) | |
download | cpython-46f681cc0777024c7259764b0eefac472d75ac97.zip cpython-46f681cc0777024c7259764b0eefac472d75ac97.tar.gz cpython-46f681cc0777024c7259764b0eefac472d75ac97.tar.bz2 |
Discussion of signatures for unicode.translate() and str.translate()
were in the wrong file. Moved out of libstring.tex and into
libstdtypes.tex.
Diffstat (limited to 'Doc/lib/libstring.tex')
-rw-r--r-- | Doc/lib/libstring.tex | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index f017aa8..6c3dc4d 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -277,16 +277,6 @@ parameter cannot be passed in earlier 2.2 versions]{2.2.3} present), and then translate the characters using \var{table}, which must be a 256-character string giving the translation for each character value, indexed by its ordinal. - - For Unicode objects, the \method{translate()} method does not - accept the optional \var{deletechars} argument. Instead, it - returns a copy of the \var{s} where all characters have been mapped - through the given translation table which must be a mapping of - Unicode ordinals to Unicode ordinals, Unicode strings or \code{None}. - Unmapped characters are left untouched. Characters mapped to \code{None} - are deleted. Note, a more flexible approach is to create a custom - character mapping codec using the \refmodule{codecs} module (see - \module{encodings.cp1251} for an example). \end{funcdesc} \begin{funcdesc}{upper}{s} |