sys.setrecursionlimit() and regular expressions

Santiago Caracol santiago.caracol at
Thu Sep 30 13:05:21 CEST 2010


in my program I use recursive functions. A recursion limit of 10 would
be by far sufficient. Yet, I also use some (not very complicated)
regular expressions, which only compile if I set the recursion limit
to 100, or so. This means, of course, an unnecessary loss of speed.

Can I use one recursion limit for my functions and another one for the
re module?


More information about the Python-list mailing list