[Python-checkins] r69905 - python/trunk/Doc/library/stdtypes.rst
georg.brandl
python-checkins at python.org
Mon Feb 23 16:51:27 CET 2009
Author: georg.brandl
Date: Mon Feb 23 16:51:27 2009
New Revision: 69905
Log:
#5352: str.count() counts non-overlapping instances.
Modified:
python/trunk/Doc/library/stdtypes.rst
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst (original)
+++ python/trunk/Doc/library/stdtypes.rst Mon Feb 23 16:51:27 2009
@@ -826,9 +826,9 @@
.. 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]])
More information about the Python-checkins
mailing list