Re: [Tutor] maximum recursion depth exceeded !

2005-07-08 Thread Alan G
>> 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.

Re: [Tutor] maximum recursion depth exceeded !

2005-07-07 Thread Wolfram Kraus
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

Re: [Tutor] maximum recursion depth exceeded !

2005-07-07 Thread Alan G
> 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

Re: [Tutor] maximum recursion depth exceeded !

2005-07-07 Thread Alan G
> 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

Re: [Tutor] maximum recursion depth exceeded !

2005-07-07 Thread Ewald Ertl
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

Re: [Tutor] maximum recursion depth exceeded !

2005-07-07 Thread Wolfram Kraus
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

[Tutor] maximum recursion depth exceeded !

2005-07-07 Thread Mohammad Moghimi
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