mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add finditer to __all__ (when defining it at all).
SF bug 585882. Will forward-port.
This commit is contained in:
parent
78cc051617
commit
0d976551fb
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue