Commit 0d976551 authored by Guido van Rossum's avatar Guido van Rossum

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

SF bug 585882.  Will forward-port.
parent 78cc0516
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment