summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-05 07:49:49 +0000
committerGeorg Brandl <georg@python.org>2008-12-05 07:49:49 +0000
commitb46f0d788cc288238c7ef8064553e5231e131879 (patch)
treecd844e3052a4da40f6584c3c8c9f847c44e16ad0
parent26576801a683fba28e66fca4759fdc327e87ea3e (diff)
downloadcpython-git-b46f0d788cc288238c7ef8064553e5231e131879.tar.gz
#4408: document regex.groups.
-rw-r--r--Doc/library/re.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index c9466aff07..916fecaef5 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -750,6 +750,11 @@ attributes:
were provided.
+.. attribute:: RegexObject.groups
+
+ The number of capturing groups in the pattern.
+
+
.. attribute:: RegexObject.groupindex
A dictionary mapping any symbolic group names defined by ``(?P<id>)`` to group