On 11/11/05, john boy <[EMAIL PROTECTED]> wrote:
> I have adjusted the program to:
>
> import sys.
> sys. getrecursionlimit()
> sys.setrecursionlimit(2000)
> def countdown (n):
>        if n ==0:
>            print "blastoff"
>       else:
>           print n
>           countdown (n-1)
> countdown (1200)
>
> this acutally works now....

Good!

> is there any way to permanently set the recursion
> level or do I have to type a setrecursionlimit everytime the program will
> likely exceed 1000

Well, you could always always set it in site.py, I suppose, but in
general, I prefer iteration over recursion in Python.

--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to