"Steven D'Aprano" <[EMAIL PROTECTED]> wrote:

> You are welcome to change the specifications of findall() and turn it into
> an iterator which returns each match one at a time instead of all at once,
> but then the name is misleading, wouldn't you agree?

The regex module has since 2.2 a function (and method for regex
objects) called finditer that does exactly that. Perhaps str (and
unicode) should have it too for consistency ?

George

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to