Closes #14250: regex.flags has not only explicit flags but also those from the pattern

This commit is contained in:
Georg Brandl 2012-03-17 17:31:32 +01:00
parent 5a607b06d6
commit 94a105705f
1 changed files with 2 additions and 2 deletions

View 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