returning none when it should be returning a list?

Christos Georgiou tzot at sil-tec.gr
Tue May 2 06:26:42 EDT 2006


On 2 May 2006 03:03:45 -0700, rumours say that "Iain King"
<iainking at gmail.com> might have written:


>John Machin wrote:
>>
>> # Doh! Looks like recursion not necessary. Google 'eliminate tail
>> recursion' :-)

>
>I did, and found this:
>http://www.biglist.com/lists/dssslist/archives/199907/msg00389.html
>which explains that the Scheme compiler optimises (obvious) tail
>recursion into iterative code.  I'm wondering if the python compiler
>does the same?

No, it doesn't so far.

More info:

<URL:http://groups.google.com/groups/search?q=group%3Acomp.lang.python+tail+recursion+optimization&qt_s=Search>
-- 
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians



More information about the Python-list mailing list