]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91760: More strict rules for numerical group references and group names in RE...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 8 May 2022 16:19:29 +0000 (19:19 +0300)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 16:19:29 +0000 (19:19 +0300)
commita84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7
tree5a129f41f7e8c49aa7ffa3f3d874ff9cd41751a8
parent7b024e3a3f77027f747da7580ed0a3ed2dec276a
gh-91760: More strict rules for numerical group references and group names in RE (GH-91792)

Only sequence of ASCII digits is now accepted as a numerical reference.
The group name in bytes patterns and replacement strings can now only
contain ASCII letters and digits and underscore.
Doc/library/re.rst
Doc/whatsnew/3.12.rst
Lib/re/_parser.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2022-04-21-19-14-29.gh-issue-91760.54AR-m.rst [new file with mode: 0644]