Q about tail recursion
moshez at math.huji.ac.il
Sat Feb 26 11:32:23 CET 2000
On Sat, 26 Feb 2000, Felix Thibault wrote:
> Does this mean that even though there are no return's in faketailadd's
> add, the function still has to work its way back up from all those
> recursive calls ?
*Every* Python function has a "return". Picture every function ending
with "return None". If it got there, it returns None. A function never
"falls off the end".
Moshe Zadka <mzadka at geocities.com>.
INTERNET: Learn what you know.
Share what you don't.
More information about the Python-list