]> granicus.if.org Git - python/commitdiff
Closes #14250: regex.flags has not only explicit flags but also those from the pattern
authorGeorg Brandl <georg@python.org>
Sat, 17 Mar 2012 16:31:32 +0000 (17:31 +0100)
committerGeorg Brandl <georg@python.org>
Sat, 17 Mar 2012 16:31:32 +0000 (17:31 +0100)
Doc/library/re.rst

index cd0d2047f5c33850f245e7e64a3207e285734c67..d64604f6df1b791a0ab6bc07525dcc6f114af0da 100644 (file)
@@ -766,8 +766,8 @@ Regular Expression Objects
 
    .. 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