From de196911f19836c0692643ad0bea713b6d451c8b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 23 Feb 2009 15:51:27 +0000 Subject: [PATCH] #5352: str.count() counts non-overlapping instances. --- Doc/library/stdtypes.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 09ba2538fa1..fe78be78420 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]])