diff options
| author | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-22 15:35:12 (GMT) |
|---|---|---|
| committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-22 15:35:12 (GMT) |
| commit | 763b50f9d96b0176003fdad41b37cf7fb11c1dda (patch) | |
| tree | d9ae2634250be13ad69071b84ea24e895aca8682 /Objects/unicodeobject.c | |
| parent | b97597316b1176e62d538c812b9e468ff3372b6b (diff) | |
| download | cpython-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/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index a3af7f6..7d11f7d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5078,8 +5078,8 @@ onError: PyDoc_STRVAR(count__doc__, "S.count(sub[, start[, end]]) -> int\n\ \n\ -Return the number of occurrences of substring sub in Unicode string\n\ -S[start:end]. Optional arguments start and end are\n\ +Return the number of non-overlapping occurrences of substring sub in\n\ +Unicode string S[start:end]. Optional arguments start and end are\n\ interpreted as in slice notation."); static PyObject * |
