3 ms·
Python 3.14 alpha: first release that includes the tail-calling interpreter
- zahlman 2y agoThere are many previous submissions about this; having the uv guy promote it isn't much more interesting. Since it might be overlooked otherwise: this is tail-call optimization within the C implementation - not TCO applied to recursive Python algorithms. The latter was deliberately rejected long ago on the basis (as I understand it) that TCO would obscure stack traces and make recursive algorithms harder to debug. (Current versions of Python do "fold" stack traces for unbounded recursion, by noticing that the trace ends with the same call repeated many times.)