-
- Downloads
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>
Showing
- Doc/whatsnew/3.12.rst 5 additions, 0 deletionsDoc/whatsnew/3.12.rst
- Lib/re/__init__.py 4 additions, 18 deletionsLib/re/__init__.py
- Lib/re/_constants.py 1 addition, 1 deletionLib/re/_constants.py
- Lib/re/_parser.py 16 additions, 29 deletionsLib/re/_parser.py
- Misc/NEWS.d/next/Library/2022-04-14-08-37-16.gh-issue-91524.g8PiIu.rst 3 additions, 0 deletions...ext/Library/2022-04-14-08-37-16.gh-issue-91524.g8PiIu.rst
- Modules/_sre/clinic/sre.c.h 40 additions, 1 deletionModules/_sre/clinic/sre.c.h
- Modules/_sre/sre.c 277 additions, 41 deletionsModules/_sre/sre.c
- Modules/_sre/sre.h 11 additions, 0 deletionsModules/_sre/sre.h
- Modules/_sre/sre_constants.h 1 addition, 1 deletionModules/_sre/sre_constants.h
Loading
Please register or sign in to comment