[Python-checkins] cpython (2.7): Closes #14250: regex.flags has not only explicit flags but also those from the

georg.brandl python-checkins at python.org
Sat Mar 17 17:31:31 CET 2012


http://hg.python.org/cpython/rev/ac00531a63aa
changeset:   75791:ac00531a63aa
branch:      2.7
parent:      75788:483319c711d4
user:        Georg Brandl <georg at python.org>
date:        Sat Mar 17 17:31:32 2012 +0100
summary:
  Closes #14250: regex.flags has not only explicit flags but also those from the pattern

files:
  Doc/library/re.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -766,8 +766,8 @@
 
    .. attribute:: RegexObject.flags
 
-      The flags argument used when the RE object was compiled, or ``0`` if no flags
-      were provided.
+      The regex matching flags.  This is a combination of the flags given to
+      :func:`.compile` and any ``(?...)`` inline flags in the pattern.
 
 
    .. attribute:: RegexObject.groups

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list