Is re.findall guaranteed to be "in order?"

Joshua Kugler jkugler at bigfoot.com
Wed Jul 16 14:33:48 EDT 2008


Fredrik Lundh wrote:

> Joshua Kugler wrote:
> 
>> Experimenting has shown me that re.findall() will return a list with the
>> matches in the order it found them.
> 
> "in the order it found them" doesn't really say much, does it? ;-)
> 
> "findall" and "finditer" both scans the string from left to right, and
> will return matches in that order.
> 
> (the documentation is a bit vague, so if you have the time, please add a
> request for clarification to the bug tracker)

Done.

http://bugs.python.org/issue3384

j





More information about the Python-list mailing list