Why no tailcall-optimization?

Michael Palmer m_palmer45 at yahoo.ca
Tue Sep 23 04:14:04 CEST 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