summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-17 16:29:27 (GMT)
committerGeorg Brandl <georg@python.org>2012-03-17 16:29:27 (GMT)
commit3a19e542ff9b9c5ed1198148cd171583a6973028 (patch)
treef36365bcbcd253bef1697c0070913cd12ab2b1bd /Doc
parent557a3ec9bbf875abaea6b4c1bed577405182db63 (diff)
downloadcpython-3a19e542ff9b9c5ed1198148cd171583a6973028.zip
cpython-3a19e542ff9b9c5ed1198148cd171583a6973028.tar.gz
cpython-3a19e542ff9b9c5ed1198148cd171583a6973028.tar.bz2
Closes #14250: regex.flags has not only explicit flags but also implicit flags and those from the pattern
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 0e4acd8..b4e0557 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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