diff options
author | Guido van Rossum <guido@python.org> | 1994-08-08 12:30:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-08 12:30:22 (GMT) |
commit | 16d6e7109deb1bcfd8a860cb60c16c02a0ef183b (patch) | |
tree | 81624359068cca2b8476d0894c8cd28788d0762e /Doc/lib/libstring.tex | |
parent | 4b4c664d2e93279c8d749da027000453f9e2cd46 (diff) | |
download | cpython-16d6e7109deb1bcfd8a860cb60c16c02a0ef183b.zip cpython-16d6e7109deb1bcfd8a860cb60c16c02a0ef183b.tar.gz cpython-16d6e7109deb1bcfd8a860cb60c16c02a0ef183b.tar.bz2 |
Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Diffstat (limited to 'Doc/lib/libstring.tex')
-rw-r--r-- | Doc/lib/libstring.tex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index bf7ad09..7d99a36 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -108,24 +108,24 @@ This doesn't understand other non-printing characters or escape sequences. \end{funcdesc} -\begin{funcdesc}{find}{s\, sub\, i} -Return the lowest index in \var{s} not smaller than \var{i} where the +\begin{funcdesc}{find}{s\, sub\optional{\, start}} +Return the lowest index in \var{s} not smaller than \var{start} where the substring \var{sub} is found. Return \code{-1} when \var{sub} -does not occur as a substring of \var{s} with index at least \var{i}. -If \var{i} is omitted, it defaults to \code{0}. If \var{i} is +does not occur as a substring of \var{s} with index at least \var{start}. +If \var{start} is omitted, it defaults to \code{0}. If \var{start} is negative, \code{len(\var{s})} is added. \end{funcdesc} -\begin{funcdesc}{rfind}{s\, sub\, i} +\begin{funcdesc}{rfind}{s\, sub\optional{\, start}} Like \code{find} but finds the highest index. \end{funcdesc} -\begin{funcdesc}{index}{s\, sub\, i} +\begin{funcdesc}{index}{s\, sub\optional{\, start}} Like \code{find} but raise \code{index_error} when the substring is not found. \end{funcdesc} -\begin{funcdesc}{rindex}{s\, sub\, i} +\begin{funcdesc}{rindex}{s\, sub\optional{\, start}} Like \code{rfind} but raise \code{index_error} when the substring is not found. \end{funcdesc} |