summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-05-22 15:35:12 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-05-22 15:35:12 (GMT)
commit763b50f9d96b0176003fdad41b37cf7fb11c1dda (patch)
treed9ae2634250be13ad69071b84ea24e895aca8682 /Objects/stringobject.c
parentb97597316b1176e62d538c812b9e468ff3372b6b (diff)
downloadcpython-763b50f9d96b0176003fdad41b37cf7fb11c1dda.zip
cpython-763b50f9d96b0176003fdad41b37cf7fb11c1dda.tar.gz
cpython-763b50f9d96b0176003fdad41b37cf7fb11c1dda.tar.bz2
docstring tweaks: count counts non-overlapping substrings, not
total number of occurences
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 536caef..f3104ee 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -2159,9 +2159,9 @@ string_capitalize(PyStringObject *self)
PyDoc_STRVAR(count__doc__,
"S.count(sub[, start[, end]]) -> int\n\
\n\
-Return the number of occurrences of substring sub in string\n\
-S[start:end]. Optional arguments start and end are\n\
-interpreted as in slice notation.");
+Return the number of non-overlapping occurrences of substring sub in\n\
+string S[start:end]. Optional arguments start and end are interpreted\n\
+as in slice notation.");
static PyObject *
string_count(PyStringObject *self, PyObject *args)