my first real program blows up, can someone tell me why?
Moshe Zadka
moshez at math.huji.ac.il
Sun Mar 5 12:39:05 EST 2000
On Sun, 5 Mar 2000, Jerry F. Davis wrote:
> I read the tutorial and tried a variation on what i saw there. and it
> blew up, with a integer overflow. can someone tell me why?
Integers are limited to the machine word size (usually 32 bits). Try using
long integers (initialize a and b with 1L) and see it work.
--
Moshe Zadka <mzadka at geocities.com>.
http://www.oreilly.com/news/prescod_0300.html
More information about the Python-list
mailing list