Re: sys.setrecursionlimit() and regular expressions

2010-09-30 Thread Peter Otten
Santiago Caracol wrote: > >> Why do you think so? The recursion limit has no effect on the speed of >> your script. It's just a number that the interpreter checks against. > > Yes, sorry. I was just about to explain that. The 'of course' in my > post was silly. > > In MY program, the recursion

Re: sys.setrecursionlimit() and regular expressions

2010-09-30 Thread Santiago Caracol
> Why do you think so? The recursion limit has no effect on the speed of your > script. It's just a number that the interpreter checks against. Yes, sorry. I was just about to explain that. The 'of course' in my post was silly. In MY program, the recursion limit is relevant for performance, beca

Re: sys.setrecursionlimit() and regular expressions

2010-09-30 Thread Peter Otten
Santiago Caracol wrote: > 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

sys.setrecursionlimit() and regular expressions

2010-09-30 Thread Santiago Caracol
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 re