You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RegexFlag parameters not described in most re methods. #119960
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.
Activity
gh-119960: Add information about regex flags in re module functions (#…
pythongh-119960: Add information about regex flags in re module funct…
[3.13] gh-119960: Add information about regex flags in re module func…
picnixz commentedon Jun 21, 2024
@kumaraditya303 it appears that the backport to 3.12 failed (maybe you missed the notification)
kumaraditya303 commentedon Jun 23, 2024
Seems like there was conflict while backporting, can you create the backport manually?
picnixz commentedon Jun 23, 2024
I'll try! it's the first time I'm doing it but it shouldn't be that hard (I think).
[3.12] gh-119960: Add information about regex flags in re module func…
pythongh-119960: Add information about regex flags in re module funct…
pythongh-119960: Add information about regex flags in re module funct…
pythongh-119960: Add information about regex flags in re module funct…
Restructure re.sub docs, clarify aspects of `repl` notation
Restructure re.sub docs, clarify aspects of `repl` notation
Restructure re.sub docs, clarify aspects of `repl` notation
Restructure re.sub docs, clarify aspects of `repl` notation
Restructure re.sub docs, clarify aspects of `repl` notation
Restructure re.sub docs, clarify aspects of `repl` notation
Restructure re.sub docs, clarify aspects of `repl` notation