Possibly Pythonic Tail Call Optimization (TCO/TRE)

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Jul 16 01:34:51 CEST 2015

On 15/07/2015 23:34, Gregory Ewing wrote:
> Mark Lawrence wrote:
>> IIRC the realms of the C setjmp and longjmp.
> Not really the same thing. A longjmp chops the stack
> back, whereas a tail call avoids putting something on
> the stack to begin with.

Thanks for that :)

My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list