summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-04-08 13:55:29 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-04-08 13:55:29 (GMT)
commit48f16f9297682ce0e01f0edfb5e4ab6f99ead7da (patch)
treedf55a10d1fdeb7e924775b471e15e685421a1c92 /Doc/library/re.rst
parentb3959bd63e963e5e88135b7e482f3622e923d7e3 (diff)
downloadcpython-48f16f9297682ce0e01f0edfb5e4ab6f99ead7da.zip
cpython-48f16f9297682ce0e01f0edfb5e4ab6f99ead7da.tar.gz
cpython-48f16f9297682ce0e01f0edfb5e4ab6f99ead7da.tar.bz2
Add MatchObject.groups which got messed up during a merge.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index c3323df..73ed56f 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -871,6 +871,9 @@ Match Objects
>>> m.group(1) # Returns only the last match.
'c3'
+
+ .. method:: MatchObject.groups(default=None)
+
Return a tuple containing all the subgroups of the match, from 1 up to however
many groups are in the pattern. The *default* argument is used for groups that
did not participate in the match; it defaults to ``None``. (Incompatibility