_sre recursion limit

Darrell news at dorb.com
Sat Jun 30 14:28:45 EDT 2001


I was surprised by the recursion limit problem, thinking it was fixed.

Discovered the fix disabled and couldn't find bug #133283

Line 1083 in _sre.c
    /* FIXME: the following fix doesn't always work (#133283) */
            if (0 && rp->pattern[2] == 65535) {

So I enabled it and the self test passed. "import test.test_re"
My needs are meet by this fix.

Can we find a test case it breaks?

_sre.pyd with the 'if' enabled.  http://ezwiki.com/sre

--Darrell Gallion






More information about the Python-list mailing list