long int OverflowException
peter_peyman_puk at yahoo.ca
Wed Apr 28 19:52:42 CEST 2010
I am seriously stumped by this one problem
I essentially have two functions like so
the print statement in b() says it is an int, but the exception raised in a() claims the long int causes an overflow when trying to cast it to int (I am running Python 2.5)
I can't provide the full code as it is part of a larger code, and I can't decouple it. What I don't understand is why a return value that is clearly an int, is being converted into a long int, and then leading to an exception.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list