Possibly Pythonic Tail Call Optimization (TCO/TRE)

Marko Rauhamaa marko at pacujo.net
Tue Jul 14 09:38:08 EDT 2015


Chris Angelico <rosuav at gmail.com>:

> On Tue, Jul 14, 2015 at 10:28 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
>> I would rather optimize by default and disable optimizations with
>> --debug or equivalent.
>
> That assumes that it's simply an optimization. This is a distinct
> semantic change.

No, tail call optimization doesn't change the behavior of the program,
for the worse anyway.


Marko



More information about the Python-list mailing list