]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111259: Optimize complementary character sets in RE (GH-120742)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 20 Jun 2024 07:19:32 +0000 (10:19 +0300)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2024 07:19:32 +0000 (07:19 +0000)
commit8bc76ae45f48bede7ce3191db08cf36d879e6e8d
tree56936a5de2d13bb77cbd0c6153af124dda90a8db
parent3846fcfb928753bd52265ba67a9b4ceae51d2ef3
gh-111259: Optimize complementary character sets in RE (GH-120742)

Patterns like "[\s\S]" or "\s|\S" which match any character are now compiled
to the same effective code as a dot with the DOTALL modifier ("(?s:.)").
Lib/re/_compiler.py
Lib/re/_constants.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2024-06-19-13-20-01.gh-issue-111259.Wki5PV.rst [new file with mode: 0644]