Assign long integer (was: [Tutor] Calculating a math formula and finding errors)

Magnus Lycka magnus@thinkware.se
Thu Jan 16 08:19:06 2003


At 10:49 2003-01-16 +0100, Jens Kubieziel wrote:
> > Actually, because Python will automatically convert to long integers if
> > there's integer overflow, you don't need to do anything.
>
>I tried this also, but this doesn't work for me. I get an overflow error
>for all integers > 12.

Automatic conversion int -> long is a new feature. 2.2 or 2.1.


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se