diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-12 14:15:03 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-12 14:15:03 (GMT) |
commit | 59fbb83cb259d869513a4f5a3dcb70bfa2c5e08d (patch) | |
tree | 688a9c9447128545fd05df2576087a3ab2dca518 | |
parent | 6f2762a22e45b282f3331cc6926aba25b93fc586 (diff) | |
download | cpython-59fbb83cb259d869513a4f5a3dcb70bfa2c5e08d.zip cpython-59fbb83cb259d869513a4f5a3dcb70bfa2c5e08d.tar.gz cpython-59fbb83cb259d869513a4f5a3dcb70bfa2c5e08d.tar.bz2 |
Fix return value for m.group() for groups not in the part of the RE that
matched; reported by Paul Moore.
-rw-r--r-- | Doc/lib/libre.tex | 2 |
1 files changed, 1 insertions, 1 deletions
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. |