From: Georg Brandl Date: Sat, 17 Mar 2012 16:31:32 +0000 (+0100) Subject: Closes #14250: regex.flags has not only explicit flags but also those from the pattern X-Git-Tag: v2.7.4rc1~958^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94a105705f3c1a4eef912fbc11980cc59969a335;p=python Closes #14250: regex.flags has not only explicit flags but also those from the pattern --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index cd0d2047f5..d64604f6df 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -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