integer overflow

Chad Haynes haynesc at rockefeller.edu
Thu Feb 5 10:58:28 EST 2004


I got an odd error which I cannot explain and cannot seem to reproduce.
The following statement

	lst[0] = num

produced this error

	OverflowError: unsigned short is greater than maximum

The number was around 65536 so it makes sense that it would overflow a 
short, but why is it trying to force it into a short integer?

-Chad



More information about the Python-list mailing list