Long overflow problem

Tom bondpaper at earthlink.net
Wed Nov 6 15:04:59 EST 2002


Hello,

I have a function that I'm using, but I need to pass it some values that 
could range between int and longint values. It looks something like this:

def myFunc (i, j):
   do cool stuff...


If I call the function as such: myFunc(2382373743L, 2382772391L), I get 
the following error:

OverflowError: Long int too long to convert to int. 

I can't seem to get myFunc to understand that i and j are long integers. 
How would I go about doing this?

Thanks.

Tom



More information about the Python-list mailing list