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 <>
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>
line 180, in compile
    return _compile(pattern, flags)
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.
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: <>
2008-04-02 17:36:05jorendorfflinkissue2537 messages
2008-04-02 17:36:03jorendorffcreate