#5352: str.count() counts non-overlapping instances.
This commit is contained in:
parent
11b34d07d8
commit
de196911f1
|
@ -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]])
|
||||
|
|
Loading…
Reference in New Issue