[Python-Dev] Tail recursion
Tim Peters
tim.one at comcast.net
Sat Nov 29 00:41:13 EST 2003
[Tim]
>> + - * // % ** pow and divmod on integers in Python will either
>> deliver an exact result or raise an exception (like MemoryError if
>> malloc() can't find enough space to hold an intermediate result).
[Guido]
> Except for ** if the exponent is negative.
Yup, and I do keep forgetting that -- it's just an accident due to that
we're stilling using floats to approximate rationals <wink>.
More information about the Python-Dev
mailing list