[Tutor] rre: Recursion error

Kirk Bailey idiot1 at netzero.net
Wed Oct 1 00:53:58 EDT 2003


Well, I tried this:

def test(count):
	print count
	count=count+1
	test(count)

and when the count got to 346, I chickened out and hit ^C, and got a HUGE error 
report  back. I will spare the list. But it went WELL past 50 recursions. Of 
course, this was a small and simple function, and did not tax the stack at all 
heavily per recursion.

-- 

end

Cheers!
         Kirk D Bailey

  +                              think                                +
   http://www.howlermonkey.net  +-----+        http://www.tinylist.org
   http://www.listville.net     | BOX |  http://www.sacredelectron.org
   Thou art free"-ERIS          +-----+     'Got a light?'-Prometheus
  +                              kniht                                +

Fnord.





More information about the Tutor mailing list