Possibly Pythonic Tail Call Optimization (TCO/TRE)

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Jul 16 00:34:39 CEST 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