#5352: str.count() counts non-overlapping instances.

This commit is contained in:
Georg Brandl 2009-02-23 15:51:27 +00:00
parent 11b34d07d8
commit de196911f1
1 changed files with 3 additions and 3 deletions

View 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]])