Chris Angelico <ros...@gmail.com>: > This is the exact sort of shenanigans that it takes to convert > recursion into tail recursion - and in MOST cases, it's very little > effort to go from there to explicit while loops. That's why TCE is so > infrequently important that it's just not worth the cost - which in > this case is damage to tracebacks.
In Python, that is. In Scheme, you write loops with tail recursion. While you *could* use the (while code body ...) form in Scheme, that would be falling out of religion. Marko -- https://mail.python.org/mailman/listinfo/python-list