Possibly Pythonic Tail Call Optimization (TCO/TRE)
Marko Rauhamaa
marko at pacujo.net
Tue Jul 14 08:28:02 EDT 2015
Chris Angelico <rosuav at gmail.com>:
> Done explicitly like this, it avoids the problem of bad tracebacks,
> because by definition you would use it only when you want the current
> stack frame to be dropped. I wonder how hard it would be to hack this
> into CPython... Anyone feel like tackling it?
I would rather optimize by default and disable optimizations with
--debug or equivalent.
Marko
More information about the Python-list
mailing list