From: Fred Drake Date: Thu, 12 Jul 2001 14:15:03 +0000 (+0000) Subject: Fix return value for m.group() for groups not in the part of the RE that X-Git-Tag: v2.1.1c1~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59fbb83cb259d869513a4f5a3dcb70bfa2c5e08d;p=thirdparty%2FPython%2Fcpython.git Fix return value for m.group() for groups not in the part of the RE that matched; reported by Paul Moore. --- diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index 766aab0f5509..414f1b5bf59a 100644 --- a/Doc/lib/libre.tex +++ b/Doc/lib/libre.tex @@ -662,7 +662,7 @@ the string matching the the corresponding parenthesized group. If a group number is negative or larger than the number of groups defined in the pattern, an \exception{IndexError} exception is raised. If a group is contained in a part of the pattern that did not match, -the corresponding result is \code{-1}. If a group is contained in a +the corresponding result is \code{None}. If a group is contained in a part of the pattern that matched multiple times, the last match is returned.