Stackless Python, Tail Recursion and Functional Programming

Tim Peters tim.one at comcast.net
Tue Jan 14 01:53:56 CET 2003


[beno]
> So..my question du jour...
>
> ***
> Does stackless python optimize tail recursion?
> ***

[Tim]
> It does not.

[beno]
> Darn. The truth hurts ;)

[Christian Tismer]
> Always believe in Tim.
> He's always telling the truth.

Except when I'm paid not to -- but nobody is paying me enough for that these
days.  Ouch -- truth *does* hurt <wink>!

> until-I-change-it- ly y'rs -- chris

I heartily approve of your plans to change the truth about nothing faster
than CPython being possible.  I wouldn't start that by worrying about tail
recursion, though.

if-god-didn't-like-loops-he-wouldn't-have-given-guido-absolute-
    power-ly y'rs  - tim






More information about the Python-list mailing list