[Patches] [ python-Patches-757624 ] Fixing recursive problem in SRE
SourceForge.net
noreply at sourceforge.net
Sun Oct 19 10:18:52 EDT 2003
Patches item #757624, was opened at 2003-06-20 01:42
Message generated for change (Comment added) made by niemeyer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=757624&group_id=5470
Category: Modules
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Gustavo Niemeyer (niemeyer)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: Fixing recursive problem in SRE
Initial Comment:
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).
----------------------------------------------------------------------
>Comment By: Gustavo Niemeyer (niemeyer)
Date: 2003-10-19 14:18
Message:
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
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-10-18 18:41
Message:
Logged In: YES
user_id=21627
I assume this patch can be closed as outdated?
----------------------------------------------------------------------
Comment By: Gustavo Niemeyer (niemeyer)
Date: 2003-06-26 16:52
Message:
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.
----------------------------------------------------------------------
Comment By: Gustavo Niemeyer (niemeyer)
Date: 2003-06-26 14:55
Message:
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.
----------------------------------------------------------------------
Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2003-06-23 13:06
Message:
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.
----------------------------------------------------------------------
Comment By: Gustavo Niemeyer (niemeyer)
Date: 2003-06-22 01:13
Message:
Logged In: YES
user_id=7887
Updated version of the patch. More on the mailing list.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=757624&group_id=5470
More information about the Patches
mailing list