Why no tailcall-optimization?

Michael Palmer m_palmer45 at yahoo.ca
Mon Sep 22 22:14:04 EDT 2008


On Sep 22, 9:13 pm, process <circularf... at gmail.com> wrote:
> Why doesn't Python optimize tailcalls? Are there plans for it?
>
> I know GvR dislikes some of the functional additions like reduce and
> Python is supposedly about "one preferrable way of doing things" but
> not being able to use recursion properly is just a big pain in the
> a**.

There are some attempts, see for example
http://code.activestate.com/recipes/496691/



More information about the Python-list mailing list