Closes #14250: regex.flags has not only explicit flags but also those from the pattern
This commit is contained in:
parent
5a607b06d6
commit
94a105705f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue