On Fri, Mar 08, 2002 at 11:11:13AM -0800, Horst wrote:
>One minor remark: in the code segment below, because of 'd * d' the code
>blows up above t > 60*60*13 sec(13hrs) at my integer implementation, so 
>       sum, sum2 = 0L, 0L
>might be safer in general .................. Horst.

Indeed.  Python 2.2 will automatically extend an integer expression to a
long when it overflows:

   >>> print repr(999999999*999999999)
   999999998000000001L

Sean
-- 
 Give me a Kaypro 64 and dial-tone and I can do *ANYTHING*!
                 -- Steven, _The_Score_
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python

Reply via email to