diff options
author | Guido van Rossum <guido@python.org> | 1998-02-02 03:01:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-02 03:01:10 (GMT) |
commit | ad37e9e77dfde3ae08bf0dc767e4c66451f3baeb (patch) | |
tree | 98c25e7dcc500746d948c8f32e6fab3097c3f892 /Doc/lib/libstring.tex | |
parent | f7c1e5a6a316699ca387663e743022df88c435b2 (diff) | |
download | cpython-ad37e9e77dfde3ae08bf0dc767e4c66451f3baeb.zip cpython-ad37e9e77dfde3ae08bf0dc767e4c66451f3baeb.tar.gz cpython-ad37e9e77dfde3ae08bf0dc767e4c66451f3baeb.tar.bz2 |
Clarify that capwords() removes leading/trailing whitespace.
Remove references to regsub, which is obsolescent.
Diffstat (limited to 'Doc/lib/libstring.tex')
-rw-r--r-- | Doc/lib/libstring.tex | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index cc3f34f..1911801 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -96,9 +96,7 @@ Capitalize the first character of the argument. Split the argument into words using \code{split}, capitalize each word using \code{capitalize}, and join the capitalized words using \code{join}. Note that this replaces runs of whitespace characters by -a single space. (See also \code{regsub.capwords()} for a version -that doesn't change the delimiters, and lets you specify a word -separator.) +a single space, and removes leading and trailing whitespace. \end{funcdesc} \begin{funcdesc}{expandtabs}{s\, tabsize} @@ -161,8 +159,6 @@ string. The optional third argument \var{maxsplit} defaults to 0. If it is nonzero, at most \var{maxsplit} number of splits occur, and the remainder of the string is returned as the final element of the list (thus, the list will have at most \code{\var{maxsplit}+1} elements). -(See also \code{regsub.split()} for a version that allows specifying a -regular expression as the separator.) \end{funcdesc} \begin{funcdesc}{splitfields}{s\optional{\, sep\optional{\, maxsplit}}} |