[Tutor] re module fails to handle text > 16142 characters ???

Norvell Spearman norvell@houseofspearman.org
Tue May 20 04:06:54 2003


On Tuesday, 2003.05.20, 09:54:10 +0200, Kristoffer Erlandsson wrote:
> If I'm right the solutions are to either increase the maximum
> recursion depth limit (no idea how to do that though :), split your
> text into smaller pieces or make your qualifiers match less somehow.
> 
> Hope it helps a bit at least :)

Here's one way:

>>> import sys
>>> sys.getrecursionlimit()
1000
>>> sys.setrecursionlimit(2000)
>>> sys.getrecursionlimit()
2000
>>>

I found how to do that in the Source, Misc/cheatsheet.

-- 
Norvell Spearman