>> Ooh, that's nice. When did the ability to tweak it programmatically
>> appear? Or has it always been there and I've just never noticed?
>
> It isn't in the 1.5.2 documentation but in the 2.0 documentation, so
> it has been there for some time ;-)
I did most of my deep digging in Python on 1.5.
Alan G wrote:
>> Start your python interpreter and:
>>
> import sys sys.getrecursionlimit()
>> 1000
> help(sys.setrecursionlimit)
>
>
> Ooh, that's nice. When did the ability to tweak it programmatically
> appear? Or has it always been there and I've just never noticed?
It isn't in the
> Start your python interpreter and:
>
> >>> import sys
> >>> sys.getrecursionlimit()
> 1000
> >>> help(sys.setrecursionlimit)
Ooh, that's nice. When did the ability to tweak it programmatically
appear?
Or has it always been there and I've just never noticed?
Looks like a good candidate for use
> I wrote a recursive function a got this error how can
> I increase maximum recursion depth.
You have to go into the Python source code and change a
value then rebuild Python.
> And what is its default value?
1000 last time I looked.
But beware that increasing it too far can result in
sign
Hi Mohammad!
I've never use a recursive function in python, but the error has the
same meaning as e.g in java.
Your function get's called and called without the end-criteria for the
recursive call is ever met.
I would suggest to check if the end-criteria of the recursive call is
correct.
I
Mohammad Moghimi wrote:
> Hi there
> I wrote a recursive function a got this error how can I increase
> maximum recursion depth. And what is its default value?
> -- Mohammad
> do you Python?!!
Start your python interpreter and:
>>> import sys
>>> sys.getrecursionlimit()
1000
>>> help(sys.setr
Hi there
I wrote a recursive function a got this error how can I increase
maximum recursion depth. And what is its default value?
-- Mohammad
do you Python?!!
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor