Self function

Aahz aahz at pythoncraft.com
Mon May 4 15:50:18 EDT 2009


In article <cee041da-a1e0-4d82-b4ba-5404811d3edd at t10g2000vbg.googlegroups.com>,
 <bearophileHUGS at lycos.com> wrote:
>Arnaud Delobelle:
>> 
>> Bearophile, there is a thread on python-ideas about tail-call
>> optimization at the moment.
>
>Someday I'll have to start following those mailing lists...
>But I am not interested in such optimization. It's not going to help
>me significantly. Most times I use recursion, I think it can't be
>optimized away by simple means (think about a visit to a binary tree).

When have you ever had a binary tree a thousand levels deep?  Consider
how big 2**1000 is...
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan



More information about the Python-list mailing list