Possibly Pythonic Tail Call Optimization (TCO/TRE)
marko at pacujo.net
Tue Jul 14 14:28:02 CEST 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.
More information about the Python-list