Alexander Schmolck wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >>On Mon, 11 Jun 2007 01:28:09 +0100, Alexander Schmolck wrote: >>>Steven D'Aprano <[EMAIL PROTECTED]> writes:
>>Don't keep us in suspense. What do you believe is the true reason? > > > It's easier to spot that some rationalization is bogus than to unconver the > true underlying causes; I'm pretty sure it's more a Gestalt thing than a > compelling technical reason. There's a real reason. Remember, functions are dynamically replaceable. The compiler would have to detect that the function doesn't modify or replace itself while recursing for this optimization to be valid. Worst case, another thread could replace the function while it was recursing, invalidating the tail recursion optimization. John Nagle -- http://mail.python.org/mailman/listinfo/python-list