Kaydet (Commit) de196911 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 11b34d07
......@@ -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]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment