classification
Title: Missing 'non overlapping' clause in str.count documentation
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: della, georg.brandl
Priority: normal Keywords:

Created on 2009-02-23 15:47 by della, last changed 2009-02-23 15:51 by georg.brandl. This issue is now closed.

Messages (2)
msg82632 - (view) Author: Matteo Dell'Amico (della) Date: 2009-02-23 15:47
The str.count (http://docs.python.org/dev/py3k/library/stdtypes.html)
documentation does not report that it returns the number of
*non-overlapping* instances. For example, I expected 'aaa'.count('aa')
to be 2 and not 1. Compare this with the string module documentation,
where the non-overlapping clause is reported.
msg82633 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-02-23 15:51
Thanks, fixed in r69905.
History
Date User Action Args
2009-02-23 15:51:37georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg82633
2009-02-23 15:47:07dellacreate