Possibly Pythonic Tail Call Optimization (TCO/TRE)

Marko Rauhamaa marko at pacujo.net
Tue Jul 14 19:31:23 CEST 2015


Chris Angelico <rosuav at gmail.com>:

> You're proposing making _every_ instance of "return func(...)" into
> this kind of thing.

Yes.

> That's not always recursion,

Correct.

> and it's certainly not always clear what called what to get you there.

Correct.


Marko


More information about the Python-list mailing list