Title: Missing 'non overlapping' clause in str.count documentation
Type: Stage:
Components: Documentation Versions:
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 (
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.
Date User Action Args
2009-02-23 15:51:37georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg82633
2009-02-23 15:47:07dellacreate