The bug is in an needlessly tail-recursive function subdiv() in cspsubdiv.py, which overflows the execution stack on large input. I attach a patch which simply converts it to a loop. The original control-flow is preserved, including the odd termination by exception.
The bug is in an needlessly tail-recursive function subdiv() in cspsubdiv.py, which overflows the execution stack on large input. I attach a patch which simply converts it to a loop. The original control-flow is preserved, including the odd termination by exception.