recursion with or without return?

notnorwegian at yahoo.se notnorwegian at yahoo.se
Sun May 25 03:00:14 EDT 2008


when using recursion should one use a return statement or not?

there is a difference obv since with a return statement it will
ultimately return a value if not recursing forever.

but is there a guideline for this or it just taste or is it
considering good style or pythonic to always have a returnvalue?



More information about the Python-list mailing list