sys.setrecursionlimit() and regular expressions

Santiago Caracol santiago.caracol at gmail.com
Thu Sep 30 07:05:21 EDT 2010


Hello,

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?

Santiago



More information about the Python-list mailing list