Skip to content

re: Odd text referring to flags in re.compile #107568

Open
@Ymiros0

Description

@Ymiros0

Documentation

I haven't had time to check the history, but it seems to me that flags used to be placed inside the functions section, perhaps even inside re.compile and have later been granted their own section in Module Contents, but their mention in re.compile has survived this move, so it now says "The expression’s behaviour can be modified by specifying a flags value. Values can be any of the following variables, combined using bitwise OR (the | operator)." and then nothing follows.
On the other hand in the Flags section of the documentation there is not a single mention of how to use more than one flag at once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixesdocsDocumentation in the Doc dirtopic-regex

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions