summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-03-22 15:27:55 (GMT)
committerGitHub <noreply@github.com>2022-03-22 15:27:55 (GMT)
commit492d4109f4d953c478cb48f17aa32adbb912623b (patch)
treec912b908f3e247d161901c0794bb28753759b796 /Misc
parent32e77154ddfc514a3144d5912bffdd957246fd6c (diff)
downloadcpython-492d4109f4d953c478cb48f17aa32adbb912623b.zip
cpython-492d4109f4d953c478cb48f17aa32adbb912623b.tar.gz
cpython-492d4109f4d953c478cb48f17aa32adbb912623b.tar.bz2
bpo-42885: Optimize search for regular expressions starting with "\A" or "^" (GH-32021)
Affected functions are re.search(), re.split(), re.findall(), re.finditer() and re.sub().
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-03-21-08-32-19.bpo-42885.LCnTTp.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-03-21-08-32-19.bpo-42885.LCnTTp.rst b/Misc/NEWS.d/next/Library/2022-03-21-08-32-19.bpo-42885.LCnTTp.rst
new file mode 100644
index 0000000..5f9c1a1
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-03-21-08-32-19.bpo-42885.LCnTTp.rst
@@ -0,0 +1,3 @@
+Optimize :func:`re.search`, :func:`re.split`, :func:`re.findall`,
+:func:`re.finditer` and :func:`re.sub` for regular expressions starting with
+``\A`` or ``^``.