summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-23 15:51:27 (GMT)
committerGeorg Brandl <georg@python.org>2009-02-23 15:51:27 (GMT)
commitde196911f19836c0692643ad0bea713b6d451c8b (patch)
tree0e9365a4d7e8681afe56e7ff3bc4a2b24341de21 /Doc/library
parent11b34d07d81969590385abfea46b90feb2a9accb (diff)
downloadcpython-de196911f19836c0692643ad0bea713b6d451c8b.zip
cpython-de196911f19836c0692643ad0bea713b6d451c8b.tar.gz
cpython-de196911f19836c0692643ad0bea713b6d451c8b.tar.bz2
#5352: str.count() counts non-overlapping instances.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 09ba253..fe78be7 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]])