Gerard Flanagan <grflana...@gmail.com> wrote:
> I realise that calling this count function with a single argument would
> be functionally identical to calling str.count(), yes. But I can imagine
> the situation of wanting to find multiple (disjoint) substrings. Is
> there a reason for preferring multiple calls to str.count() in such a
> case? Or is there a more obvious approach?

No, I totally missed that it was counting disjoint substrings :)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to