Thoughts on Guido's ITC audio interview

George Sakkis gsakkis at rutgers.edu
Sun Jun 26 09:47:40 EDT 2005


"Steven D'Aprano" <steve at REMOVETHIScyber.com.au> 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




More information about the Python-list mailing list