ursus_horibilis at hotmail.com
Tue Nov 27 19:03:25 CET 2001
"Hans Nowak" <wurmy at earthlink.net> wrote in message
news:3C03D04B.D89F97A2 at earthlink.net...
> Ursus Horibilis wrote:
> > Is there a way to force the Python run time system to
> > integer overflows? I was trying to write a 32-bit Linear
> > Congruential Pseudo Random Number Generator
> Say what?
> > and got clobbered
> > the first time an integer product or sum went over the
> > limit.
> Use longs:
Okay. My next project was to do the same thing with 64-bit
numbers. So how do I disable trapping for integer overflow?
(And don't tell me to use very longs ;-)
More information about the Python-list