]> granicus.if.org Git - python/commitdiff
SF bug #732120:An extended definition of "non-overlapping" would save time.
authorRaymond Hettinger <python@rcn.com>
Sun, 31 Aug 2003 05:29:02 +0000 (05:29 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 31 Aug 2003 05:29:02 +0000 (05:29 +0000)
Clarified the meaning of non-overlapping in patterns with zero length
matches.

Doc/lib/libre.tex

index a78fbc3b7c5c3f1b9e478c13e0c572eeae1119b2..e31ccd01076278b42bc8058c95e7b5f5836e282b 100644 (file)
@@ -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}