Log in

Tail recursion

I got a cool idea for how to hack tail recursion in Python better. As often happens, someone else got my idea first. Mainly posting it here so that next time I paint myself into a corner by forgetting that Python doesn't have native tail-recursion support, I'll be able to easily extract myself.