[Python-Dev] Proper tail recursion

"Martin v. Löwis" martin at v.loewis.de
Wed Jul 14 21:30:02 CEST 2004

Christopher T King wrote:

> To tell the truth, I don't really have any immediate use for this
> functionality, either, but since it turned out to be so easy to implement,
> I ask, "why not?" ;) 

The traditional answer to that question is "because Jython cannot
support it".

> * I know it breaks stack traces, but the final implementation will only be 
> used when the -O flag is specified, or some other such indicator is set.

That would be bad. It would change the behaviour of programs, which 
should not happen for -O (except for the documented changes, of course,
whose list should be short).


More information about the Python-Dev mailing list