From 59fbb83cb259d869513a4f5a3dcb70bfa2c5e08d Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 12 Jul 2001 14:15:03 +0000 Subject: Fix return value for m.group() for groups not in the part of the RE that matched; reported by Paul Moore. --- Doc/lib/libre.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index 766aab0..414f1b5 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. -- cgit v0.12