[Python-ideas] Tail recursion elimination

spir denis.spir at gmail.com
Sun Jan 19 16:31:53 CET 2014


On 01/19/2014 04:12 PM, Joao S. O. Bueno wrote:
>> >You also need to adjust frame size, possibly even its structure (dunno,
>> >depends on implementation details of python's "calling convention" so to
>> >say), to get a right space (and disposition) for the callee's input
>> >variables.
> Not in this suggestion -  I did not propose re-using the frame,
> as seens to be the case around the calls, just because of that:
> these frames in Python seen to be tied to the code object
> within it. 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)

All right, I did not rightly get your proposal.

Denis


More information about the Python-ideas mailing list