summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 abbe152..79b8d3b 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -787,8 +787,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