This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Fixing recursive problem in SRE
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: niemeyer Nosy List: aimacintyre, loewis, niemeyer
Priority: normal Keywords: patch

Created on 2003-06-20 01:42 by niemeyer, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sre.patch niemeyer, 2003-06-20 01:42
sre.patch niemeyer, 2003-06-22 01:13 Version 2
sre.patch niemeyer, 2003-06-22 20:23 Version 3
sre.tar.bz2 niemeyer, 2003-06-26 14:55 Version 4
sre.tar.bz2 niemeyer, 2003-06-26 16:57 Version 5
sre.tar.bz2 niemeyer, 2003-06-29 22:27 Version 6
Messages (7)
msg44078 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2003-06-20 01:42
Here is a preview for the SRE change being discussed in
python-dev mailing list. It also includes the changes
in patch #572936 (groupref_exists).
msg44079 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2003-06-22 01:13
Logged In: YES 
user_id=7887

Updated version of the patch. More on the mailing list.
msg44080 - (view) Author: Andrew I MacIntyre (aimacintyre) * (Python triager) Date: 2003-06-23 13:06
Logged In: YES 
user_id=250749

version 3 of the patch survives a full regression test run
on both FreeBSD 4.8 & 5.1, with USE_RECURSION_LIMIT reverted
to 10000.
msg44081 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2003-06-26 14:55
Logged In: YES 
user_id=7887

Thanks for testing it!

Here is another implementation (version 4), using a
different approach. Unlike the other implementations, this
one doesn't recurse at all, and introduce no new opcodes in
the engine.
msg44082 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2003-06-26 16:52
Logged In: YES 
user_id=7887

Version 5 fixes a minor bug due to a variable being used
inside a macro and a submacro. Now submacro allocates it
internally to avoid further problems.
msg44083 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-18 18:41
Logged In: YES 
user_id=21627

I assume this patch can be closed as outdated?
msg44084 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2003-10-19 14:18
Logged In: YES 
user_id=7887

Committed as:

Doc/lib/libre.tex: 1.107
Lib/sre_compile.py: 1.50
Lib/sre_constants.py: 1.34
Lib/sre_parse.py: 1.58
Lib/test/test_re.py: 1.46
Misc/NEWS: 1.871
Modules/_sre.c: 2.101
Modules/sre.h: 2.23
Modules/sre_constants.h: 2.16
History
Date User Action Args
2022-04-10 16:09:21adminsetgithub: 38688
2003-06-20 01:42:31niemeyercreate