]> granicus.if.org Git - python/commitdiff
#5352: str.count() counts non-overlapping instances.
authorGeorg Brandl <georg@python.org>
Mon, 23 Feb 2009 15:51:27 +0000 (15:51 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 23 Feb 2009 15:51:27 +0000 (15:51 +0000)
Doc/library/stdtypes.rst

index 09ba2538fa150430fd27e98a4774185732e72f3b..fe78be78420b964ab93048e5ca39e51160b67953 100644 (file)
@@ -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]])