Possibly Pythonic Tail Call Optimization (TCO/TRE)

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Jul 15 18:34:39 EDT 2015


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.

-- 
Greg



More information about the Python-list mailing list