From: Georg Brandl Date: Mon, 23 Feb 2009 15:51:27 +0000 (+0000) Subject: #5352: str.count() counts non-overlapping instances. X-Git-Tag: v2.7a1~1959 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de196911f19836c0692643ad0bea713b6d451c8b;p=python #5352: str.count() counts non-overlapping instances. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 09ba2538fa..fe78be7842 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -826,9 +826,9 @@ string functions based on regular expressions. .. method:: str.count(sub[, start[, end]]) - Return the number of occurrences of substring *sub* in the range [*start*, - *end*]. Optional arguments *start* and *end* are interpreted as in slice - notation. + Return the number of non-overlapping occurrences of substring *sub* in the + range [*start*, *end*]. Optional arguments *start* and *end* are + interpreted as in slice notation. .. method:: str.decode([encoding[, errors]])