Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 38236:7e16fcce34a1 legacy-trunk
docstring tweaks: count counts non-overlapping substrings, not
total number of occurences
| author | Fredrik Lundh <fredrik@pythonware.com> |
|---|---|
| date | Mon, 22 May 2006 15:35:12 +0000 |
| parents | 380dad395599 |
| children | ad1e2438cfaa |
line wrap: on
line diff
--- a/Objects/stringobject.c Mon May 22 15:22:46 2006 +0000 +++ b/Objects/stringobject.c Mon May 22 15:35:12 2006 +0000 @@ -2159,9 +2159,9 @@ 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)
