On 2010-08-20, John Nagle <na...@animats.com> wrote: > Python does not do tail recursion, so using recursion where > iteration could do the job is generally a bad idea. Scheme, on > the other hand, always does tail recursion where possible.
A tail-recursive function is usually easy to convert to a loop-style iteration. However, Scheme does tail-call optimization, I believe, which is slightly more general. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list