summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-06-20 07:19:32 (GMT)
committerGitHub <noreply@github.com>2024-06-20 07:19:32 (GMT)
commit8bc76ae45f48bede7ce3191db08cf36d879e6e8d (patch)
tree56936a5de2d13bb77cbd0c6153af124dda90a8db /Misc/NEWS.d
parent3846fcfb928753bd52265ba67a9b4ceae51d2ef3 (diff)
downloadcpython-8bc76ae45f48bede7ce3191db08cf36d879e6e8d.zip
cpython-8bc76ae45f48bede7ce3191db08cf36d879e6e8d.tar.gz
cpython-8bc76ae45f48bede7ce3191db08cf36d879e6e8d.tar.bz2
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:.)").
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2024-06-19-13-20-01.gh-issue-111259.Wki5PV.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-19-13-20-01.gh-issue-111259.Wki5PV.rst b/Misc/NEWS.d/next/Library/2024-06-19-13-20-01.gh-issue-111259.Wki5PV.rst
new file mode 100644
index 0000000..91ed5f5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-06-19-13-20-01.gh-issue-111259.Wki5PV.rst
@@ -0,0 +1,3 @@
+:mod:`re` now handles patterns like ``"[\s\S]"`` or ``"\s|\S"`` which match
+any character as effectively as a dot with the ``DOTALL`` modifier
+(``"(?s:.)"``).