> For example, to do something really useful, get rid of the recursion > in SRE (although this might be beyond the scope of a beta 2 as well). I've just done so! The recursion limit is gone. And the interesting part is, there's less code, and the logic is a lot simpler and more obvious. My tests have shown that there was no slow down, and indeed some cases are faster. All regression tests succeed (besides those that checked the recursion limit), and, of course, these work: >>> import re >>> re.match("^(?:x)*$", 5000000*"x") <_sre.SRE_Match object at 0x300eb258> >>> re.match("^(?:x)*?$", 5000000*"x") <_sre.SRE_Match object at 0x300eb5c8> Now, for the question... <jumping frenetically> Can I commit!? Can I commit!? </> :-) -- 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