added finditer sanity check

This commit is contained in:
Fredrik Lundh 2001-10-28 20:15:40 +00:00
parent ca6dfa55c5
commit b7747e2a2d
2 changed files with 13 additions and 3 deletions

View file

@ -167,9 +167,8 @@ def findall(pattern, string):
if sys.hexversion >= 0x02020000:
def finditer(pattern, string):
"""Return an iterator over all non-overlapping matches in
the string. For each match, the iterator returns a match
object.
"""Return an iterator over all non-overlapping matches in the
string. For each match, the iterator returns a match object.
Empty matches are included in the result."""
return _compile(pattern, 0).finditer(string)