summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libre.tex
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-08-31 05:29:02 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-08-31 05:29:02 (GMT)
commit2f3e5483a3324b44fa5dbbb98859dc0ac42b6070 (patch)
treeb5329c080b9739a05b67c67d54301ece5a5edcb5 /Doc/lib/libre.tex
parent0a6aa28681b38bba28b633078f7a0809715fefc1 (diff)
downloadcpython-2f3e5483a3324b44fa5dbbb98859dc0ac42b6070.zip
cpython-2f3e5483a3324b44fa5dbbb98859dc0ac42b6070.tar.gz
cpython-2f3e5483a3324b44fa5dbbb98859dc0ac42b6070.tar.bz2
SF bug #732120:An extended definition of "non-overlapping" would save time.
Clarified the meaning of non-overlapping in patterns with zero length matches.
Diffstat (limited to 'Doc/lib/libre.tex')
-rw-r--r--Doc/lib/libre.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex
index a78fbc3..e31ccd0 100644
--- a/Doc/lib/libre.tex
+++ b/Doc/lib/libre.tex
@@ -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}