Nested Scopes ... next tail recursion?
Tim Peters
tim.one at home.com
Sun May 13 19:31:09 EDT 2001
[Ronald Legere]
> ...
> I wonder if there is any chance of getting tail recusion
> handled properly in the future?
Best guess is slim. It's rarely requested, and AFAIK there are no active
Python developers who program in a style helped by this gimmick. If so, no
current developer is likely to contribute such a patch.
BTW, if A calls B calls B calls B blows up, part of "properly" in *Python*
would likely include generating a traceback as if tail calls had not been
optimized. May not require a full stack frame for each level, but may
require that *something* be tucked away at each level, and in that case it
wouldn't be "proper" by your meaning.
deviating-from-"the-obvious"-execution-model-would-hit-stiff-
resistance-ly y'rs - tim
More information about the Python-list
mailing list