summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libstring.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-01 12:18:36 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-01 12:18:36 (GMT)
commitab3a2504b97d5131779f400717dc491919783dd0 (patch)
tree03ced22eee028d86931850377b469bea0fabb55d /Doc/lib/libstring.tex
parent7f43da7d61aef59ffb8a0c5042ebdf85c08869c6 (diff)
downloadcpython-ab3a2504b97d5131779f400717dc491919783dd0.zip
cpython-ab3a2504b97d5131779f400717dc491919783dd0.tar.gz
cpython-ab3a2504b97d5131779f400717dc491919783dd0.tar.bz2
libsocket.tex: send[to] returns nbytes.
libstring.tex: added count(). ref2.tex: new keywords; moved keyword printing program to keywords.py.
Diffstat (limited to 'Doc/lib/libstring.tex')
-rw-r--r--Doc/lib/libstring.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 2bcbdfc..bf7ad09 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -130,6 +130,12 @@ Like \code{rfind} but raise \code{index_error} when the substring is
not found.
\end{funcdesc}
+\begin{funcdesc}{count}{s\, sub\, i}
+Return the number of (non-overlapping) occurrences of substring
+\var{sub} in string \var{s} with index at least \var{i}.
+If \var{i} is omitted, it defaults to \code{0}.
+\end{funcdesc}
+
\begin{funcdesc}{lower}{s}
Convert letters to lower case.
\end{funcdesc}