[Python-checkins] r79906 - python/branches/py3k/Doc/library/re.rst

brian.curtin python-checkins at python.org
Thu Apr 8 15:55:29 CEST 2010


Author: brian.curtin
Date: Thu Apr  8 15:55:29 2010
New Revision: 79906

Log:
Add MatchObject.groups which got messed up during a merge.


Modified:
   python/branches/py3k/Doc/library/re.rst

Modified: python/branches/py3k/Doc/library/re.rst
==============================================================================
--- python/branches/py3k/Doc/library/re.rst	(original)
+++ python/branches/py3k/Doc/library/re.rst	Thu Apr  8 15:55:29 2010
@@ -871,6 +871,9 @@
          >>> 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


More information about the Python-checkins mailing list