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.

Author jorendorff
Recipients jorendorff
Date 2008-04-02.17:36:02
SpamBayes Score 0.060518
Marked as misclassified No
Message-id <1207157766.7.0.917289707609.issue2537@psf.upfronthosting.co.za>
In-reply-to
Content
Below, the second regexp seems just as guilty as the first to me.

Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile(r'((x|y)*)*')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/re.py",
line 180, in compile
    return _compile(pattern, flags)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/re.py",
line 233, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat
>>> re.compile(r'((x|y+)*)*')
<_sre.SRE_Pattern object at 0x18548>

I don't know if that error is to protect the sre engine from bad
patterns or just a courtesy to users.  If the former, it could be a
serious bug.
History
Date User Action Args
2008-04-02 17:36:06jorendorffsetspambayes_score: 0.060518 -> 0.060518
recipients: + jorendorff
2008-04-02 17:36:06jorendorffsetspambayes_score: 0.060518 -> 0.060518
messageid: <1207157766.7.0.917289707609.issue2537@psf.upfronthosting.co.za>
2008-04-02 17:36:05jorendorfflinkissue2537 messages
2008-04-02 17:36:03jorendorffcreate