diff Doc/libstring.tex @ 1750:0b645726957e legacy-trunk

libsocket.tex: send[to] returns nbytes. libstring.tex: added count(). ref2.tex: new keywords; moved keyword printing program to keywords.py.
author Guido van Rossum <guido@python.org>
date Mon, 01 Aug 1994 12:18:36 +0000
parents 2ec96140a36b
children 907605320a5f
line wrap: on
line diff
--- a/Doc/libstring.tex	Mon Aug 01 12:15:30 1994 +0000
+++ b/Doc/libstring.tex	Mon Aug 01 12:18:36 1994 +0000
@@ -130,6 +130,12 @@
 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}