Maric Michaud wrote: > Actually it's even more efficient than Lundh's effbot's solution finds overlapping occurrences, whereas your solution finds non-overlapping occurrences. So efficiency comparisons are not valid.
e.g: indices( 'aaaaa', 'aa' ) your solution gives: 0,2 effbots's solution: 0,1,2,3 Regards Sreeram
signature.asc
Description: OpenPGP digital signature
-- http://mail.python.org/mailman/listinfo/python-list