Skip to content

RegexFlag parameters not described in most re methods. #119960

@EdStauff

Description

@EdStauff

Documentation

In https://docs.python.org/3/library/re.html (also 3.12, 3.13, and 3.14) the flags parameter is defined in the documentation for re.compile(), but not for any other method that takes a flags parameter (search, match, fullmatch, split, findall, finditer, sub, subn).

I expected the documentation for each of those methods to at least specify the type of the flags parameter (presumably re.RegexFlag), with a link to the detailed description under the “Module Contents” section.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions