[Python-ideas] Tail recursion elimination

Stephen J. Turnbull stephen at xemacs.org
Sun Jan 19 18:26:30 CET 2014


Joao S. O. Bueno writes:

 > My suggestion is simply to discard the current frame before
 > building the frame for the call. (Maybe adding some logging
 > information on this next frame so that the stack trace could be
 > complete)

That way lies madness.  The logging information needs to be stored
somewhere.  If it's to be "complete", it may as well be in ... wait
for it ... a stack frame.


More information about the Python-ideas mailing list