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

index 0e4acd88ae71bc715374caaa79722488d13ed0a1..b4e055701102c123aa8b17aa7cbeca970ba23b1b 100644 (file)
@@ -784,8 +784,9 @@ attributes:
 
 .. attribute:: regex.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`, any ``(?...)`` inline flags in the pattern, and implicit
+   flags such as :data:`UNICODE` if the pattern is a Unicode string.
 
 
 .. attribute:: regex.groups