Issue 5352: Missing 'non overlapping' clause in str.count documentation

Issue5352

Created on 2009-02-23 15:47 by della, last changed 2022-04-11 14:56 by admin. 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
2022-04-11 14:56:46adminsetgithub: 49602
2009-02-23 15:51:37georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg82633
2009-02-23 15:47:07dellacreate