]> granicus.if.org Git - python/commitdiff
Add MatchObject.groups which got messed up during a merge.
authorBrian Curtin <brian.curtin@gmail.com>
Thu, 8 Apr 2010 13:55:29 +0000 (13:55 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Thu, 8 Apr 2010 13:55:29 +0000 (13:55 +0000)
Doc/library/re.rst

index c3323df3e8afefe0624346108a090ffafe3ff0a4..73ed56fef10322203118e7b31293e71823b06c9e 100644 (file)
@@ -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