> > I've just done so! The recursion limit is gone. ... > > Cool! Very cool. Check it in. Note that the primary effect will be Thanks! I'll do a few minor retouches, and check it in. > to change complaints about the recursion limit to complaints about > "infinite loops in sre" <0.4 wink>. That's not true! They'll be about memory blowing up. ;-)) More seriously, the real infinite loops (like the one I've shown in the other mail) should be prevented while parsing or compiling (which is hopefully not hard), and the cases where the user matches against a *really* huge string.. well.. 1000**1000**1000 is easier. :-) > BTW, it would be best to Fredrik Lundh's blessing for this, since sre is > still "his" package. I'm copying him on this. Some version of Gustavo's > patch is here: > > http://www.python.org/sf/757624 Given his wonderful work on SRE, I'd really like to know his opinion about it. OTOH, I must confess I have a bad experience waiting for Fredrik's opinion. :-) Hopefully, he will answer so quickly I'll feel ashamed for even mentioning this. -- Gustavo Niemeyer http://niemeyer.net
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4