Add finditer to __all__ (when defining it at all).

SF bug 585882.  Will forward-port.
This commit is contained in:
Guido van Rossum 2002-10-14 12:22:17 +00:00
parent 78cc051617
commit 0d976551fb
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ def findall(pattern, string):
return _compile(pattern, 0).findall(string)
if sys.hexversion >= 0x02020000:
__all__.append("finditer")
def finditer(pattern, string):
"""Return an iterator over all non-overlapping matches in the
string. For each match, the iterator returns a match object.