[Patches] [ python-Patches-720991 ] Some bug fixes for regular ex code.

SourceForge.net noreply@sourceforge.net
Mon, 14 Apr 2003 11:15:53 -0700


Patches item #720991, was opened at 2003-04-14 05:14
Message generated for change (Comment added) made by gvanrossum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=720991&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
>Priority: 5
Submitted By: Gary Herron (herron)
>Assigned to: Fredrik Lundh (effbot)
Summary: Some bug fixes for regular ex code.

Initial Comment:
A small fix for bug #545855 and  Greg Chapman's 
addition of op code SRE_OP_MIN_REPEAT_ONE for 
eliminating recursion on simple uses of pattern '*?' on a 
long string. 

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-04-14 14:15

Message:
Logged In: YES 
user_id=6380

Looks cool; I've checked this in unchanged, except changing
one comment: the comment about the test for bug 545855 said
it would generate errors during matching, while when I try
it, the pattern generates a TypeError during compilation. I
don't feel capable to review the code you added to _sre.c;
I'll assign it to Fredrik, but I don't expect him to have
time to look at it. It seems you haven't broken his
requirement for this code to work back to Python 1.5.2. I'll
backport to Python 2.2 as well.

Do I understand correctly that the .*? addition is all Greg
Chapman's work?

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-04-14 12:46

Message:
Logged In: YES 
user_id=6380

Will look at this ASAP.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=720991&group_id=5470