Q about tail recursion

Moshe Zadka moshez at math.huji.ac.il
Sun Feb 27 03:41:49 EST 2000


On Sun, 27 Feb 2000, Tim Peters wrote:

>  And if a def is sometimes meant to return a value and
> sometimes not, redesign the code before you drive yourself insane <wink>.

I've thought about writing a small utility to warn me about such
functions, which should be easy enough: either all or none of
"RETURN_VALUE" opcodes should be preceded by LOAD_CONST of None.

Would such a scheme work?


--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list