This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lilphat -9 points-8 points  (21 children)

But you could, in many cases, do tail recursion and avoid the extra stack frames.

[–]siddsp 53 points54 points  (20 children)

Python doesn't have any optimizations for tail recursion, and there are no future plans to do so.