New submission from Matteo Dell'Amico <de...@linux.it>: 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.
---------- assignee: georg.brandl components: Documentation messages: 82632 nosy: della, georg.brandl severity: normal status: open title: Missing 'non overlapping' clause in str.count documentation _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5352> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com