Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstring.tex @ 7185:a596bbe72579 legacy-trunk
Clarify that capwords() removes leading/trailing whitespace.
Remove references to regsub, which is obsolescent.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 02 Feb 1998 03:01:10 +0000 |
| parents | 2d97fb1d06ca |
| children | bf4e790bd61a |
line wrap: on
line diff
--- a/Doc/lib/libstring.tex Sat Jan 31 23:39:28 1998 +0000 +++ b/Doc/lib/libstring.tex Mon Feb 02 03:01:10 1998 +0000 @@ -96,9 +96,7 @@ 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 @@ 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}}}
