Integer Overflow

Fernando Pérez fperez528 at
Mon Nov 26 13:01:26 CET 2001

Ursus Horibilis wrote:

>> 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 ;-)

No. Python longs are not C longs, they are arbitrary length integers (think 
Mathematica/Maple/etc). They're therefore dog slow, but never overflow. Very 
handy when you really need them.



More information about the Python-list mailing list