]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix return value for m.group() for groups not in the part of the RE that
authorFred Drake <fdrake@acm.org>
Thu, 12 Jul 2001 14:15:03 +0000 (14:15 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 12 Jul 2001 14:15:03 +0000 (14:15 +0000)
matched; reported by Paul Moore.

Doc/lib/libre.tex

index 766aab0f5509d1959ca5f163821df40470fa7185..414f1b5bf59a25585206cbba1a73838ab6296529 100644 (file)
@@ -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.