[Python-bugs-list] [Bug #112693] re behaves differently in 1.6 and 2.0 than 1.52

noreply@sourceforge.net noreply@sourceforge.net
Wed, 20 Sep 2000 18:17:53 -0700


Bug #112693, was updated on 2000-Aug-24 20:04
Here is a current snapshot of the bug.

Project: Python
Category: Modules
Status: Closed
Resolution: None
Bug Group: None
Priority: 7
Summary: re behaves differently in 1.6 and 2.0 than 1.52

Details: The output is diffrent when run with 1.52 when compared with 1.6 or 2.0

http://dorb.com/python/testRe.py



Follow-Ups:

Date: 2000-Aug-25 07:42
By: jhylton

Comment:
Just noting that we should resolve this bug before release.

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

Date: 2000-Aug-28 00:34
By: effbot

Comment:
The pattern causes excessive recursion (nested repeats on a long target string).  SRE's stack check traps this, but the exception got lost on the way out.

With the current CVS version, the example gives a "maximum recursion limit exceeded".  That's an improvement, but not enough to close the bug...
-------------------------------------------------------

Date: 2000-Sep-05 16:25
By: dgallion

Comment:
Noticed a problem with a more simple pattern.

Python 2.0b1 (#2, Sep  4 2000, 11:03:25) [MSC 32 bit (Intel)] on win32
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2000 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.
>>> buf=open('testRe.py').read()
>>> import re
>>> res= re.findall(".*",buf)
>>> len(res)
1
Python 1.5.2 (#0, Aug 12 2000, 14:54:22) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> buf=open('testRe.py').read()
>>> import re
>>> res=re.findall(".*",buf)
>>> len(res)
432

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

Date: 2000-Sep-20 18:17
By: gvanrossum

Comment:
Fixed according to submittor.  Closed without verification.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=112693&group_id=5470