mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
SF bug #732120:An extended definition of "non-overlapping" would save time.
Clarified the meaning of non-overlapping in patterns with zero length matches.
This commit is contained in:
parent
0a6aa28681
commit
2f3e5483a3
1 changed files with 3 additions and 2 deletions
|
@ -547,14 +547,15 @@ ignored.
|
|||
\var{string}. If one or more groups are present in the pattern,
|
||||
return a list of groups; this will be a list of tuples if the
|
||||
pattern has more than one group. Empty matches are included in the
|
||||
result.
|
||||
result unless they touch the beginning of another match.
|
||||
\versionadded{1.5.2}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{finditer}{pattern, string}
|
||||
Return an iterator over all non-overlapping matches for the RE
|
||||
\var{pattern} in \var{string}. For each match, the iterator returns
|
||||
a match object. Empty matches are included in the result.
|
||||
a match object. Empty matches are included in the result unless they
|
||||
touch the beginning of another match.
|
||||
\versionadded{2.2}
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue