summaryrefslogtreecommitdiffstats
path: root/Lib/re/_constants.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-10-23 22:57:30 (GMT)
committerGitHub <noreply@github.com>2022-10-23 22:57:30 (GMT)
commit75a6fadf369315b27e12f670e6295cf2c2cf7d7e (patch)
treecbf2004f870017f90874dc721e928da9412bab50 /Lib/re/_constants.py
parent176b6c57be70fb70fd0563813a87822545eb4bbf (diff)
downloadcpython-75a6fadf369315b27e12f670e6295cf2c2cf7d7e.zip
cpython-75a6fadf369315b27e12f670e6295cf2c2cf7d7e.tar.gz
cpython-75a6fadf369315b27e12f670e6295cf2c2cf7d7e.tar.bz2
gh-91524: Speed up the regular expression substitution (#91525)
Functions re.sub() and re.subn() and corresponding re.Pattern methods are now 2-3 times faster for replacement strings containing group references. Closes #91524 Primarily authored by serhiy-storchaka Serhiy Storchaka Minor-cleanups-by: Gregory P. Smith [Google] <greg@krypto.org>
Diffstat (limited to 'Lib/re/_constants.py')
-rw-r--r--Lib/re/_constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/re/_constants.py b/Lib/re/_constants.py
index 10ee14b..d8718d3 100644
--- a/Lib/re/_constants.py
+++ b/Lib/re/_constants.py
@@ -13,7 +13,7 @@
# update when constants are added or removed
-MAGIC = 20220615
+MAGIC = 20221023
from _sre import MAXREPEAT, MAXGROUPS