Commits

Fred Drake committed 4861373

Fix return value for m.group() for groups not in the part of the RE that
matched; reported by Paul Moore.

Comments (0)

Files changed (1)

Doc/lib/libre.tex

 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.